Skip to content
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

Need to add Generator support #1011

Closed
gvanrossum opened this issue Nov 26, 2015 · 0 comments · Fixed by #1128
Closed

Need to add Generator support #1011

gvanrossum opened this issue Nov 26, 2015 · 0 comments · Fixed by #1128

Comments

@gvanrossum
Copy link
Member

PEP 484 defines a Generator class, a subclass of Iterator that also specifies the types of send() and the return value (for yield from). I'm not 100% sure that this doesn't require changes to mypy.

ddfisher added a commit to ddfisher/mypy that referenced this issue Jan 14, 2016
Functions containing yield statements can now return any supertype
of generator. This fixes python#1011.
ddfisher added a commit to ddfisher/mypy that referenced this issue Jan 14, 2016
Functions containing yield statements can now return any supertype
of generator. This fixes python#1011.
ddfisher added a commit to ddfisher/mypy that referenced this issue Jan 14, 2016
Functions containing yield statements can now return any supertype
of generator. This fixes python#1011.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants