-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle multiple unused submodule imports #60
Comments
I have a question concerning a slightly adjusted example. import multiprocessing.pool
import multiprocessing.process
z = multiprocessing.pool.ThreadPool() pylint and flake8 don't see any unused import here. I would argue Update Working on this, PR incoming. |
Would you consider exempting F401 from RUF100 until this is solved? Even if ruff cannot handle this correctly, it'd be much cleaner if as a developer one could still add the proper noqa on each such unused import simply to indicate to other developers that they are aware of it being unused. |
Will Red knot address this issue? |
pylint does this properly, Flake8 does not.
For example, with this:
Flake8 will only mark the second import as unused.
The text was updated successfully, but these errors were encountered: