From 97f32a57a2ef984c2ea7ba920092d937079116be Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 24 May 2017 08:02:47 -0700 Subject: [PATCH] complete __future__ stubs (#1326) We were missing the most important one. --- stdlib/2and3/__future__.pyi | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/stdlib/2and3/__future__.pyi b/stdlib/2and3/__future__.pyi index f59753cd8..7eed90e56 100644 --- a/stdlib/2and3/__future__.pyi +++ b/stdlib/2and3/__future__.pyi @@ -1,16 +1,21 @@ import sys +from typing import List class _Feature: def getOptionalRelease(self) -> sys._version_info: ... def getMandatoryRelease(self) -> sys._version_info: ... -absolute_import = ... # type: _Feature -division = ... # type: _Feature -generators = ... # type: _Feature -nested_scopes = ... # type: _Feature -print_function = ... # type: _Feature -unicode_literals = ... # type: _Feature -with_statement = ... # type: _Feature +absolute_import: _Feature +division: _Feature +generators: _Feature +nested_scopes: _Feature +print_function: _Feature +unicode_literals: _Feature +with_statement: _Feature +if sys.version_info >= (3, 0): + barry_as_FLUFL: _Feature -if sys.version_info[:2] >= (3, 5): - generator_stop = ... # type: _Feature +if sys.version_info >= (3, 5): + generator_stop: _Feature + +all_feature_names: List[str]