We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I know there are problems for dynamically generated members, but in this case everything is static.
execute pylint on this code:
class Base: label: str class Derived(Base): label = "I exist!" print(Derived.label)
test.py:7:6: E1101: Class 'Derived' has no 'label' member (no-member)
reported by pylint
No no-member error reported by pylint
no-member
~:$ pylint --version pylint 2.6.0 astroid 2.4.2 Python 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
tested also on
~:$ pylint --version pylint 2.4.4 astroid 2.3.3 Python 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
The text was updated successfully, but these errors were encountered:
@przecze thanks for the report. I can reproduce it. An interesting fact is that the code below doesn't trigger the bug.
class Base: pass class Derived(Base): label = "I exist!" print(Derived.label)
Sorry, something went wrong.
[no-member] Add a regression test for a false positive
1e34188
Closes pylint-dev#3803
[no-member] Add a regression test for a false positive (#7095)
e876f04
Closes #3803
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
I know there are problems for dynamically generated members, but in this case everything is static.
Steps to reproduce
execute pylint on this code:
Current behavior
reported by pylint
Expected behavior
No
no-member
error reported by pylintpylint --version output
tested also on
The text was updated successfully, but these errors were encountered: