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.
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.