-
Notifications
You must be signed in to change notification settings - Fork 437
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
PEP 647 (TypeGuard) #425
Comments
Thanks for opening an issue with Pyre. We don't have plans in that direction in the near future. Looks like you mainly want to use it Typeshed stubs (i.e., replace I've added a workaround to recognize Btw, I'm curious which functions you plan to use |
Thanks! I added examples of functions for which TypeGuard could be useful to the typeshed issue. |
cc @kbansal I believe you've implemented TypeGuard support, can we close this issue? |
Yes, this is now implemented. Closing. |
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: