-
-
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
False positive: E1307 Argument 'builtins.NoneType' does not match format type 'd' #2631
Comments
looks like E1307 was added in 2.2.0 in ba62048 |
@yugr do you think it is feasible to add a check for None inspection in your checker? |
+ disable E1307 pylint-dev/pylint#2631
Hm, I think the real problem here is not the checking of |
This is a problem with our control flow inference, which cannot understand the |
@PCManticore Right, I guess there is not much the checker can do then. |
This one no longer reproduces (pylint 2.17.0-dev0 and astroid 2.15.0-dev0) & should be fixed according to pylint-dev/astroid#1189. |
Steps to reproduce
Lint following snippet on python3:
Real life usecase is this code:
https://github.com/buildbot/buildbot/blob/master/master/buildbot/schedulers/forcesched.py#L172
https://github.com/buildbot/buildbot/blob/master/master/buildbot/steps/python_twisted.py#L444
Current behavior
pylint output wrong error:
Expected behavior
no error
pylint --version output
This is a regression from pylint 2.1.1
The text was updated successfully, but these errors were encountered: