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
Else block of isinstance check with promotable types has <nothing> for type #6141
/home/msullivan/lol2.py:4: error: Revealed type is 'Union[builtins.int, builtins.float]'
which is of course also wrong.
The prior version produced false positives in the then branch and false negatives in the else branch, while the new version produces false positives in the else branch and works correctly in the then branch.
Activity
Disable promotions when restricting types in isinstance checks
Disable promotions when restricting types in isinstance checks (#6142)