We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Run pylint on the following:
class SomeClass(): '''This class does nothing''' def __init__(self): self.val = self.val
No errors are thrown
It should warn that self.val is undefined. Note that it works correctly inside functions and at module level.
pylint 1.7.1, astroid 1.5.3 Python 3.6.1 (default, Mar 27 2017, 00:27:06) [GCC 6.3.1 20170306]
The text was updated successfully, but these errors were encountered:
Thanks, I can reproduce this.
Sorry, something went wrong.
Fix pylint-dev#1555: Fix false negative for no-member when assignin…
no-member
65d15c0
…g instance attribute to itself
958cc36
Fix #1555: Fix false negative for no-member when assigning instance…
129c730
… attribute to itself (#5544) Co-authored-by: Daniël van Noord <[email protected]>
Successfully merging a pull request may close this issue.
Steps to reproduce
Run pylint on the following:
Current behavior
No errors are thrown
Expected behavior
It should warn that self.val is undefined.
Note that it works correctly inside functions and at module level.
pylint --version output
pylint 1.7.1,
astroid 1.5.3
Python 3.6.1 (default, Mar 27 2017, 00:27:06)
[GCC 6.3.1 20170306]
The text was updated successfully, but these errors were encountered: