Undefined variable __class__
as return type when using annotations
#2640
Labels
__class__
as return type when using annotations
#2640
Steps to reproduce
Using
__class__
as a method return type results in an undefined variable error, unless the type is also used in the arguments. Using it only for arguments works as expected.Current behavior
Expected behavior
No undefined variable error.
pylint --version output
The text was updated successfully, but these errors were encountered: