-
Notifications
You must be signed in to change notification settings - Fork 226
Open
astral-sh/ruff
#23305Labels
featureNew feature or requestNew feature or requestserverRelated to the LSP serverRelated to the LSP server
Description
Unused variables in comprehensions are not highlighted (neither by ty nor by ruff).
Not sure where this issue belongs, but in VSCode I get this with pyright:
But when using the ty Language Server I get:
Note the difference in the color of the variable a. If I hover the a, pyright tells me it is unused, while ty does not. Is this something we can add to ty? It is a useful feature that can help catch bugs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestserverRelated to the LSP serverRelated to the LSP server