-
-
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
Incorrect "undefined variable" error for class variables as return type annotations #1976
Labels
Comments
Thanks, I can reproduce the issue! |
anjsimmo
added a commit
to anjsimmo/pylint
that referenced
this issue
Apr 20, 2020
…as return type annotation (pylint-dev#1976)
anjsimmo
added a commit
to anjsimmo/pylint
that referenced
this issue
Apr 20, 2020
…ute as return type annotation (pylint-dev#1976)
anjsimmo
added a commit
to anjsimmo/pylint
that referenced
this issue
Apr 20, 2020
…ute as return type annotation (pylint-dev#1976)
4 tasks
PCManticore
pushed a commit
that referenced
this issue
Apr 22, 2020
…ute as return type annotation (#1976)
I can't get this work
Am I doing wrong? Thanks! |
The same thing for
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pylint seems to incorrectly identify an undefined variable error when using a class variable as a return type annotation. Argument type annotations appear to be OK.
Steps to reproduce
Current behavior
Expected behavior
No error.
Curiously, the below doesn't emit any errors, where
MyType
should have identical scope:pylint --version output
The text was updated successfully, but these errors were encountered: