-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
assert and isinstance type inference #475
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
Labels
Comments
This could sometimes be used as an arguably more Pythonic replacement for casts. |
I found a bunch of occurrences of this in our server code; bumping priority to 0.3.2. |
ddfisher
added a commit
to ddfisher/mypy
that referenced
this issue
Apr 8, 2016
gvanrossum
pushed a commit
that referenced
this issue
Apr 8, 2016
* Get type information from isinstance assertions Fixes #475. * Add test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code should be accepted by mypy:
The type type checker should know about type assertions.
The text was updated successfully, but these errors were encountered: