question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `# type: ignore`

See original GitHub issue

For 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:open
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JelleZijlstracommented, Nov 18, 2021

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.

0reactions
Bhavay192commented, Nov 18, 2021

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found