-
-
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
Regression on # pylint: disable
comment
#2297
Comments
I can confirm the same bug, in fact I meant to report his just now. My solution was to remove the second "#" comment indicator, which was there only due to formatting. |
Unfortunately, this is not possible if the other comment is there to disable mypy checks because it currently only works if it is the first comment block. Ex: line to ignore # type: ignore # pylint: disable=check-to-ignore This used to work. Now, the two cannot be combined on the same line. |
I can also confirm this bug, thanks for raising it! It seems it was introduced by #1743. |
Confirmed here as well. |
I can add my voice to the growing chorus:
With Pylint 1.9.2, I get no warnings. With 2.1.1, I get:
|
Hey folks, this should be fixed in the master branch, please give it a go and let me know if it works for you! |
This still seems to be a problem, though it's shifted a bit. This file:
with no pylintrc produces:
|
@nedbat Notice the disable uses |
oops! my mistake :) |
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
Added entry for the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
Steps to reproduce
while
The text was updated successfully, but these errors were encountered: