-
I am using pyright with NeoVim via from . import routes # pyright: ignore Despite the ignore instruction, pyright LSP sets the following:
Similarly, How do I tell pyright to ignore all imports, but only for a particular line? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no way to individually suppress tagged hints. These are not intended to be displayed as regular diagnostics. They are unaffected by |
Beta Was this translation helpful? Give feedback.
Because these are not intended to be diagnostics. They're meant to be rendered as a subtle visual clue that a symbol is unreferenced. If rendered correctly, you should not feel compelled to "disable" or suppress these.
Here's how it renders in VS Code for comparison. There is no "underline squiggle" or other indication that there is a diagnostic presented on that line because a "tagged hint" isn't meant to be a real diagnostic.
For a full history of this discussion, refer to this thread.