-
-
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
Support type information from conditional expressions #806
Comments
If there the same fix with
And mypy complains that |
I think adding this kind of logic with |
Yeah, adding callable() is #1973. Better support for On Fri, Oct 14, 2016 at 5:53 AM, Reid Barton [email protected]
--Guido van Rossum (python.org/~guido) |
In code like the following:
we should be able to figure out that
x
must be ADict
, but instead we get the errorThe text was updated successfully, but these errors were encountered: