-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Reference before assignment errors #13976
Labels
bug
mypy got something wrong
Comments
(Sorry, reopened by accident...) |
Connecting the dots as the linked issues are closed: looks like #4019 tracks this case now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
mypy doesn't catch "reference before assignment" errors
To Reproduce
Expected Behavior
If the above program is ran without
NAME
set, it'll crash:My expectation was that mypy would catch this error.
Actual Behavior
Your Environment
0.982
--strict
mypy.ini
(and other config files): noneThanks for your help!
The text was updated successfully, but these errors were encountered: