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
I understand the ban on star imports in general,
however, it seems that specifically from typing import * became kindof idiomatic.
I wonder if this specific stanza could be supported.
P.S. I personally don't do this, but work on others' code that does.
The text was updated successfully, but these errors were encountered:
I would highly recommend against using wildcard imports from libraries. It's an extremely dangerous practice that leads to code fragility. New symbols are introduced to the typing module every release, and you risk local namespace collisions when upgrading.
I'm not aware of wildcard imports from typing becoming idiomatic. I've seen it used as a shorthand in a few sample snippets and bug reports, but I've never seen it used in actual code.
If you don't want to see the warning, you can disable the reportWildcardImportFromLibrary diagnostic check in your project.
I understand the ban on star imports in general,
however, it seems that specifically
from typing import *
became kindof idiomatic.I wonder if this specific stanza could be supported.
P.S. I personally don't do this, but work on others' code that does.
The text was updated successfully, but these errors were encountered: