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
Hello, here is an "interesting" corner case, derived from the one I posted to exhibit #1630
Since I'm not sure if that is sharing the same root cause, I opened a separate ticket.
class Meta(type): def __new__(cls, name, bases, dct, *args, x=None, **kwargs): print(x) return super().__new__(cls, name, bases, dct, *args, **kwargs) class C(metaclass=Meta, x=var): pass
Not reporting any error.
test.py:6:6: E0602: Undefined variable 'var' (undefined-variable)
pylint 2.6.0 astroid 2.4.2 Python 3.8.7 (default, Dec 24 2020, 17:53:09) [GCC 10.2.0]
The text was updated successfully, but these errors were encountered:
metaclass
Thanks, this makes sense.
Sorry, something went wrong.
Add test for pylint-dev#4021
fee6935
This closes pylint-dev#4021
Undefined-variable
Add test for #4021
816c8f8
This closes #4021
Successfully merging a pull request may close this issue.
Hello, here is an "interesting" corner case, derived from the one I posted to exhibit #1630
Since I'm not sure if that is sharing the same root cause, I opened a separate ticket.
Steps to reproduce
Current behavior
Not reporting any error.
Expected behavior
pylint --version output
The text was updated successfully, but these errors were encountered: