Special reference __class__
is considered undefined in nested lexical scope.
#4032
Labels
Bug 🪲
C: undefined-variable
Issues related to 'undefined-variable' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Milestone
Reproducer
Steps to reproduce
pylint --score=no --reports=no --enable=all --disable=missing-module-docstring,missing-class-docstring,multiple-statements,too-few-public-methods,no-method-argument,unused-argument
on the reproducer above.__class__
being an undefined variable.Current behavior
Expected behavior
No error since this is valid Python.
pylint --version output
The text was updated successfully, but these errors were encountered: