You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Almost certainly related to #4021 - most likely all class keywords arguments are not being checked.
Reproducer:
classSomething( metaclass=ClassFactory ): passclassClassFactory( type ): pass
Steps to reproduce
Run pylint --score=no --reports=no --enable=all --disable=missing-module-docstring,missing-class-docstring,multiple-statements,too-few-public-methods,multiple-statements on the reproducer above.
Note the lack of complaint about using ClassFactory being undefined.
Run the reproducer in a Python interpreter and note that it chokes on the undefined variable.
$ python3 pylint-bugs/metaclass_definition_order.py
Traceback (most recent call last):
File "pylint-bugs/metaclass_definition_order.py", line 1, in <module>
class Something( metaclass = ClassFactory ): pass
NameError: name 'ClassFactory' is not defined
Current behavior
No error from Pylint.
Expected behavior
An error about attempting to use an undefined variable in a class keyword.
Almost certainly related to #4021 - most likely all class keywords arguments are not being checked.
Reproducer:
Steps to reproduce
pylint --score=no --reports=no --enable=all --disable=missing-module-docstring,missing-class-docstring,multiple-statements,too-few-public-methods,multiple-statements
on the reproducer above.ClassFactory
being undefined.Current behavior
No error from Pylint.
Expected behavior
An error about attempting to use an undefined variable in a class keyword.
pylint --version output
The text was updated successfully, but these errors were encountered: