pylance-release
pylance-release copied to clipboard
grey out unused imports transitively
Since none of the subimports are used, it would be nice if the "copy" in from copy was greyed out. Ditto 'dataclasses'.
it does grey them out. I assume you are using pylance not jedi?
if it still repro, can you provide us full logs as described in the troubleshooting guide?
The word copy doesn't look any dimmer than the word typing, though it has an unused import.
I believe technically copy is used. deepcopy is not, and that's why it's greyed out. But because you imported something from copy it's in use.
This is what I meant by transitive. It would be nice to grey out copy too since looking at its “uses” we see none of them are actually used and so the whole module essentially isn’t.