-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognize callable
in conditional type binding
#1973
Labels
Comments
I see. Normally unions can be disambiguated using isinstance(), but that doesn't really work for Callable. |
If this is desirable, probably adding some more code to the |
gnprice
changed the title
Make mypy callable aware
Recognize Aug 1, 2016
callable
in conditional type binding
This was referenced Oct 14, 2016
gvanrossum
pushed a commit
that referenced
this issue
Jan 11, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run mypy against the following code:
it complains about self.some_field not being callable:
Perhaps mypy could be made aware of the "callable(...)" statements? Thanks!
The text was updated successfully, but these errors were encountered: