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
an error along the lines of "signature 2 incompatible with implementation" because it cannot return a str when flag=False
Actual Behavior
$ mypy test.py
test.py:11:13: note: Revealed type is "builtins.float"
test.py:12:13: note: Revealed type is "builtins.str"
test.py:13:13: note: Revealed type is "builtins.str"
Your Environment
Mypy version used:
$ mypy --version
mypy 0.910
The text was updated successfully, but these errors were encountered:
Bug Report
Mypy should ensure
overload
s are compatible with the implementationTo Reproduce
Expected Behavior
an error along the lines of "signature 2 incompatible with implementation" because it cannot return a
str
whenflag=False
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: