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
{{ message }}
Repository navigation
--strict-optional warns in boolean expression x is not None and x > 10 #3643
x=None# In the real world x is in an untyped module and sometimes gets setdefmethod() ->None:
ifxisnotNoneandx>10: # Unsupported operand types for < ("int" and None)pass
I'm guessing the correct behavior of binder.py should assume the type is Any if previous statements in a boolean expression invalidate the only possible types.
Activity
Suppress any errors found in a boolean expression after filtering out…
Suppress any errors found in a boolean expression after filtering out…
Suppress any errors found in a boolean expression after filtering out…
Suppress any errors found in a boolean expression after filtering out…