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
F401 (unused imports) - Help text underlining is confusing #11223
Comments
@zanieb I added this issue at your instruction, but I'm not sure that it's required any longer. I think the justification for only underlining the /binding/ that is unused, and not the whole /statement/ is because of the case where there are multiple bindings in a single statement, some of which are used and some of which aren't. Here's a fixture test that demonstrates this:ruff/crates/ruff_linter/resources/test/fixtures/pyflakes/F401_29__all_conditional/__init__.py Lines 1 to 16 in 1798425
and its resolution: Lines 1 to 24 in 1798425
|
In #11168 we noticed that the help text is only underlining the as-name part of an unused import, e.g.
This might be confusing for users and should be fixed.
The text was updated successfully, but these errors were encountered: