-
Notifications
You must be signed in to change notification settings - Fork 283
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 PEP 647: TypeGuard #916
Comments
No plans yet, but as you said, it shouldn't be too difficult for us to just interpret |
I should have some time to do this tomorrow afternoon. |
Thanks! |
For #916. PiperOrigin-RevId: 373679585
I've implemented rewriting TypeGuard[X] to bool in stubs; I'll try to do a release tomorrow. |
Ok, pytype 2021.05.14 is out. Please let me know if you run into any issues using TypeGuard in stubs. |
Thanks again! |
We've got a basic implementation of TypeGuard done. It'll be in the next release, hopefully tomorrow. |
I'd like to start using https://www.python.org/dev/peps/pep-0647/ in typeshed. Do you have any plans in that direction already?
I can look into adding basic support to unblock typeshed, which would mean simply interpreting
TypeGuard[...]
as an alias forbool
.The text was updated successfully, but these errors were encountered: