Skip to content

Ignore a particular line (# pyright: ignore) #8325

Answered by erictraut
savchenko asked this question in Q&A
Discussion options

You must be logged in to vote

Any particular reason why they can't (shouldn't?) be individually "toggleable"?

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@savchenko
Comment options

@erictraut
Comment options

Answer selected by savchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants