-
-
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
E1101: Class 'strerror' has no 'lower' member (no-member) #2553
E1101: Class 'strerror' has no 'lower' member (no-member) #2553
Comments
Thanks for the report. |
Thanks A LOT for the detailed information! I'll keep an eye on this, then. At first I thought it was impossible to infer that strerror was a string, so I would have to live with this limitation (which is not a big deal anyway), but looks like it is solvable, probably. Again, thanks :) If more information is needed from me, don't hesitate to ask :) |
Steps to reproduce
pylint --enable=all test.py
wheretest.py
is the file belowCurrent behavior
pylint
outputs the following for the file above:Expected behavior
It should give no errors, because
strerror
is a string object and as such it haslower()
. I don't know whypylint
doesn't know that, becausestrerror
is a standard member forOSError
exceptions, I'm just curious. I can disable the check, of course, but the code is not wrong, IMHO.So, the expected output is:
pylint --version output
Happens in latest stable, too, but I installed the prerelease just in case.
The text was updated successfully, but these errors were encountered: