Open
Description
In #229 support for DiagnosticTag
was introduced for flake8 but the range in those diagnostics is not quite right.
With a file like (requires "pylsp.plugins.flake8.enabled": true
):
from typing import Any, List
def foo() -> Any:
return 1
the whole from typing
line is marked with "unused" tag while only the List
import is unused.
Here is how it looks with pylsp:
Here is how it looks with pyright:
Metadata
Metadata
Assignees
Labels
No labels