Skip to content
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

annotated variable hides "undefined name" #728

Closed
asottile opened this issue Sep 8, 2022 · 0 comments · Fixed by #729
Closed

annotated variable hides "undefined name" #728

asottile opened this issue Sep 8, 2022 · 0 comments · Fixed by #729
Labels

Comments

@asottile
Copy link
Member

asottile commented Sep 8, 2022

this works:

$ pyflakes /dev/stdin <<< 'x = x'
/dev/stdin:1:5: undefined name 'x'
$

this does not:

$ pyflakes /dev/stdin <<< 'x: int = x'
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant