-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add typing.Generator #642
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
Comments
I'm trying to implement this (see my generator branch for progress). Should |
If a function has |
See also #695 and #1011 (at least one of these three is a duplicate). FWIW I think Sander's question is whether this is still allowed:
or whether all generators must be declared as Generator. I believe this example should still be valid (but callers should not call send() or throw().) |
Yeah, an |
Also closed by #1128. |
typing.Generator
is specified in the PEP 484 draft. Allow it to be used as the return type of a generator function.The text was updated successfully, but these errors were encountered: