-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Warning with underscore _ breaks pragma parsing #3604
Milestone
Comments
I have edited the report to pin the version of code for the "broken" one - obviously the line will be changed to the variant that does not trigger the bug (for now? forever?). |
VladimirSlavik
added a commit
to VladimirSlavik/anaconda
that referenced
this issue
May 11, 2020
VladimirSlavik
added a commit
to VladimirSlavik/anaconda
that referenced
this issue
May 13, 2020
Another reproducer which does not depend on Anaconda project. pylint-reproducer.py
Then run
You will see plenty of errors but also the |
2.5.3 is going to permit this again once released. |
Thank you! |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a particular warning in disable pragma, pylint fails to parse the identifier string. The warning comes from a plugin (pocketlint) and is called
found-_-in-module-class
(note underscore). Instead of disabling, E0012 is emitted and the disable does not happen (obviously). Once the disable is changed to use the numeric identifierW9902
, the issue goes away.This regression appeared after updating pylint from 2.4.4. to 2.5.0.
Steps to reproduce
found-_-in-module-class
in the indicated line withW9902
Current behavior
Buggy behavior:
After replacing:
(no output)
See relevant files:
Expected behavior
No output
pylint --version output
The text was updated successfully, but these errors were encountered: