Skip to content

Add __future__.generator_stop for Python 3.5 #195

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

Merged
merged 1 commit into from
May 12, 2016

Conversation

graingert
Copy link
Contributor

No description provided.

@gvanrossum
Copy link
Member

I think it would be better to add these to stdlib/3/future.py using something like

import sys
if sys.version_info[:2] >= (3, 5):
    generator_stop = ...  # type: _Feature

(despite python/mypy#698).

@graingert
Copy link
Contributor Author

@gvanrossum yeah I think so to

@gvanrossum gvanrossum merged commit 833a81d into python:master May 12, 2016
@gvanrossum
Copy link
Member

Thanks!

@graingert graingert deleted the patch-1 branch May 12, 2016 22:40
momandine pushed a commit to momandine/typeshed that referenced this pull request Jul 5, 2016
Revamped generic class behavior to conform to updated PEP 484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants