-
-
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
inherit-non-class false positive: NamedTuple (Python 3.9) #3876
Comments
@belm0 thanks for the report. I can reproduce it (i need to import |
yes, is should be labeled with "regression" if possible |
@belm0 this is not a |
Seems to be same as #3884. This was raised upstream : https://bugs.python.org/issue41973 |
@tirkarthi thanks for your comment. It is indeed the same issue as #3884. I keep this issue open and close #3884. |
I also receive the pylint warning: "R0903: Too few public methods (0/2) (too-few-public-methods)" on NamedTuples in python 3.9.0. |
Includes workaround for pylint bug when run with python3.9 around NamedTuple. Related: pylint-dev/pylint#3876
Includes workaround for pylint bug when run with python3.9 around NamedTuple. Related: pylint-dev/pylint#3876
Python 3.9 changed typing.NamedTuple to be a function that can be inherited from. This trips up pylint, cf. pylint-dev/pylint#3876.
Python 3.9 changed typing.NamedTuple to be a function that can be inherited from. This trips up pylint, cf. pylint-dev/pylint#3876.
@pjljvandelaar you are right. Both problem arise from the same reason. It is also linked to #3895 and should be addressed soon, once pylint-dev/astroid#858 will be merged. |
Steps to reproduce
Current behavior
Expected behavior
no error
pylint --version output
The text was updated successfully, but these errors were encountered: