-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support # type: ignore
#188
Comments
Hey @JelleZijlstra, Can I work on the issue please?? |
What is the approach here? Are you planning to attach the comments to the AST? (iirc the ast module doesn't do that on its own) If it helps, I have some code that does exactly that, and I can clean it up and post it. |
Hey @erezsh, I'm new to this repo , I don't know how to work on this but surely with some guidance will be able to solve it. |
I'm a visitor here too. Let's see what the maintainer has to say. |
Thanks for offering to work on this! I think it can be implemented basically by having the current code that checks for Edge cases to consider:
|
Hey @JelleZijlstra , thanks for replying. Soo as per your comment, you want us to make a program which checks for #static analysis: ignore ?? Soo basically it would be a string matching algorithm?? |
We already check for |
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 |
I would clone the repo, look for the places that implement |
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
.The text was updated successfully, but these errors were encountered: