Skip to content

Commit ec7c4c8

Browse files
author
Thomas Grainger
committed
Add __future__.generator_stop for Python 3.5
1 parent 33fe6a0 commit ec7c4c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stdlib/3/__future__.pyi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from sys import _version_info
1+
import sys
22

33
class _Feature:
4-
def getOptionalRelease(self) -> _version_info: ...
5-
def getMandatoryRelease(self) -> _version_info: ...
4+
def getOptionalRelease(self) -> sys._version_info: ...
5+
def getMandatoryRelease(self) -> sys._version_info: ...
66

77
absolute_import = ... # type: _Feature
88
division = ... # type: _Feature
@@ -11,3 +11,6 @@ nested_scopes = ... # type: _Feature
1111
print_function = ... # type: _Feature
1212
unicode_literals = ... # type: _Feature
1313
with_statement = ... # type: _Feature
14+
15+
if sys.version_info[:2] >= (3, 5):
16+
generator_stop = ... # type: _Feature

0 commit comments

Comments
 (0)