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
Assuming mypy relies on x always being a float like the type hint says, the "not isinstance" is actually always False and I guess it would be legitimate for the error to be issued on line 5 (raise). But surely the print statement on line 6 is never unreachable, right?
The text was updated successfully, but these errors were encountered:
I'm not sure if this is the same issue as #7204, but here's another --warn-unreahcable false positive with a much smaller test case:
...gives with mypy 0.720:
Assuming mypy relies on
x
always being a float like the type hint says, the "not isinstance" is actually always False and I guess it would be legitimate for the error to be issued on line 5 (raise
). But surely theprint
statement on line 6 is never unreachable, right?The text was updated successfully, but these errors were encountered: