You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug
There are no errors reported about join being imported multiple times
Maybe not a runtime error but seems like a programing mistake we should catch. Also when you run organize imports, it shifts the import order which changes the behavior of the code :/
The text was updated successfully, but these errors were encountered:
mjbvz
changed the title
No error when duplicate imports
No error on duplicate imports
Sep 24, 2024
This is legal Python code, and it doesn't violate any static typing rules.
If you'd like to enforce a rule like "no duplicate import symbols", that's something that would be more in the domain of a linter. Popular linters for Python code include pylint and ruff. Pyright (the static analysis tool upon which pylance is built) is a type checker, so it focuses on type analysis and type violations.
Bug
There are no errors reported about
join
being imported multiple timesMaybe not a runtime error but seems like a programing mistake we should catch. Also when you run
organize imports
, it shifts the import order which changes the behavior of the code :/The text was updated successfully, but these errors were encountered: