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
Inconsistent return type when calling overloaded function with Any argument #3662
main.py:4: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
main.py:16: error: Revealed type is 'Any'
main.py:17: error: Revealed type is 'builtins.int'
Activity
ilevkivskyi commentedon Aug 31, 2017
On current master both of them return
int.emmatyping commentedon Aug 31, 2017
Interestingly, with
strict-optionalit reportsEDIT: this is on 0.521
ilevkivskyi commentedon Aug 31, 2017
Something strange happens, I just installed from master on another machine and it gives me:
both with and without
--strict-optional. I tried this twice, probably my previous comment is just wrong.emmatyping commentedon Aug 31, 2017
Strange. Just to avoid concerns about inconsistencies, I should have mentioned I was using 0.521, so it seems the overload issue was fixed in master.
Infer better type for call to overload with Any actual arguments
Infer better type for call to overload with Any actual arguments (#3917)