From 5804543c1cce17a01af0f98cbcf53ff0fe82a69d Mon Sep 17 00:00:00 2001 From: MapleCCC Date: Fri, 4 Jun 2021 01:50:38 +0800 Subject: [PATCH] Add `__all__` to `__future__.pyi` (#5570) Closes #5569 --- stdlib/__future__.pyi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/stdlib/__future__.pyi b/stdlib/__future__.pyi index a68183dbe..4658afa9f 100644 --- a/stdlib/__future__.pyi +++ b/stdlib/__future__.pyi @@ -21,3 +21,31 @@ if sys.version_info >= (3, 7): annotations: _Feature all_feature_names: List[str] # undocumented + +if sys.version_info >= (3, 7): + __all__ = [ + "all_feature_names", + "absolute_import", + "division", + "generators", + "nested_scopes", + "print_function", + "unicode_literals", + "with_statement", + "barry_as_FLUFL", + "generator_stop", + "annotations", + ] +else: + __all__ = [ + "all_feature_names", + "absolute_import", + "division", + "generators", + "nested_scopes", + "print_function", + "unicode_literals", + "with_statement", + "barry_as_FLUFL", + "generator_stop", + ]