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
Recognize callable in conditional type binding #1973
Activity
gvanrossum commentedon Aug 1, 2016
I see. Normally unions can be disambiguated using isinstance(), but that doesn't really work for Callable.
dmoisset commentedon Aug 1, 2016
If this is desirable, probably adding some more code to the
find_isinstance_checkanalysis might resolve this[-]Make mypy callable aware[/-][+]Recognize `callable` in conditional type binding[/+]Conditional type-check based on callable call (#2627)