-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Remove unused imports - March 2025 Edition #131152
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
Comments
See also PR gh-131150. |
Do you plan to add CI for checking unused imports? cc @hugovk |
I tried So I used Maybe a |
ruff's 401 works great for me. I can open a PR with a few :-) edit: I went through all of ruffs suggestions |
today i accidentally came across next unused import :-) Lines 378 to 381 in f7ac656
and i'm going to check cli modules from |
This command working for me is fine: |
cc @vstinner I can send a PR for each module separately if you are against it. |
|
sorry, I'll remember it (but I guessed there was some side effect) |
I close this issue, since the initial issue (unused imports) has been fixed. If someone wants to automate detecting unused imports, I suggest to open a new issue. But be aware that there are reasons why it's not automated yet.
Be careful, linters are stupid and reports false alarms. I checked I added
|
Feature or enhancement
Proposal:
There are a bunch of unused imports in Python stdlib. I'm working on pull requests to remove them.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Tools/{build,wasm}
#131155Tools/cases_generator
#131156The text was updated successfully, but these errors were encountered: