How to handle unused imports? #682
BenediktBurger
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quite a few modules contain several imports which are not used.
Most linters complain about unused imports as they can have a negative impact.
It is best practice to not import something from a file, where it is imported as well, but directly from the source.
I understand, that it is sometimes useful.
Currently, some module import via some other module, therefore a developer never knows, when he can remove an import or not.
Could we have a clear policy how to handle imports?
For example:
Beta Was this translation helpful? Give feedback.
All reactions