You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mypy does not catch variables that might not be defined due to ifs and therelike:
if False:
a = "Test"
print(a)
This happens both in Python2- and Python3-mode
I remember in an earlier version I always had to define them before the if, so that the variables are always defined:
a = ""
if condition:
a = "Test"
print(a)
The text was updated successfully, but these errors were encountered:
Mypy does not catch variables that might not be defined due to ifs and therelike:
This happens both in Python2- and Python3-mode
I remember in an earlier version I always had to define them before the if, so that the variables are always defined:
The text was updated successfully, but these errors were encountered: