We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug Report
Mypy does not detect invalid usage within nested functions. This might be a duplicate of #8746 but I thought it's a different issue.
To Reproduce
def a() -> None: val = 0 def b() -> None: val += 1 b() a()
Expected Behavior
I'd like mypy to mark val += 1 as an error, as the runtime does
val += 1
Actual Behavior
Code is considered correct.
Your Environment
The text was updated successfully, but these errors were encountered:
mypy mostly doesn't complain about UnboundLocalErrors, this is being actively worked on. Duplicate of #2400 , #686 , etc
Sorry, something went wrong.
No branches or pull requests
Bug Report
Mypy does not detect invalid usage within nested functions. This might be a duplicate of #8746 but I thought it's a different issue.
To Reproduce
Expected Behavior
I'd like mypy to mark
val += 1
as an error, as the runtime doesActual Behavior
Code is considered correct.
Your Environment
The text was updated successfully, but these errors were encountered: