From ec7c4c82e3d9e6d1ee101e0aa64f163e695b51ec Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 11 May 2016 00:37:37 +0100 Subject: [PATCH] Add __future__.generator_stop for Python 3.5 --- stdlib/3/__future__.pyi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stdlib/3/__future__.pyi b/stdlib/3/__future__.pyi index 241406974756..f59753cd8067 100644 --- a/stdlib/3/__future__.pyi +++ b/stdlib/3/__future__.pyi @@ -1,8 +1,8 @@ -from sys import _version_info +import sys class _Feature: - def getOptionalRelease(self) -> _version_info: ... - def getMandatoryRelease(self) -> _version_info: ... + def getOptionalRelease(self) -> sys._version_info: ... + def getMandatoryRelease(self) -> sys._version_info: ... absolute_import = ... # type: _Feature division = ... # type: _Feature @@ -11,3 +11,6 @@ nested_scopes = ... # type: _Feature print_function = ... # type: _Feature unicode_literals = ... # type: _Feature with_statement = ... # type: _Feature + +if sys.version_info[:2] >= (3, 5): + generator_stop = ... # type: _Feature