Support `# type: ignore`
See original GitHub issueFor compatibility, pyanalyze should support # type: ignore
in addition to # static analysis: ignore
. Error code-specific ignores should still work the same way. The functionality for using a custom ignore comment should not accept # type: ignore
.
This can be implemented mostly in node_visitor.py
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Common issues and solutions - mypy 0.991 documentation
You can use a # type: ignore comment to silence the type checker on a particular line. For example, let's say our code...
Read more >Support "type: ignore" comments from PEP 484 : PY-19917
Yes, please make PyCharm ignore # type: ignore comments. Currently it is not nice to use Mypy and PyCharm in parallel. Sadly there...
Read more >ignore` comments to suppress mypy errors · Issue #12358 ...
The goal here is to provide an alternate syntax for an ignore comment that targets mypy only, and not other type checkers. So...
Read more >"# type: ignore" to ignore more than one line - Python mailing list
Let's only support `# type: ignore` on a line by itself at the top of the file. To answer Rebecca's question, I propose...
Read more >How can mypy ignore a single line in a source file?
You can ignore type errors with # type: ignore as of version 0.2 (see issue #500, Ignore specific lines):. PEP 484 uses #...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would clone the repo, look for the places that implement
# static analysis: ignore
(use grep), then extend the logic there to also cover# type: ignore
.Hey @JelleZijlstra , thanks for replying. Could you please help me on how to start or in what direction to think for the same?? Like how should I proceed on working on this issue. Thanks