From 7c6104ddfe000b76cb52b1bc01046138c233aeec Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Wed, 16 Oct 2019 12:39:56 -0700 Subject: [PATCH] Don't shadow ast.Tuple with typing.Tuple (#3376) --- stdlib/3/ast.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index c278d80df..c517aa6e2 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -3,7 +3,7 @@ import sys # from _ast below when loaded in an unorthodox way by the Dropbox # internal Bazel integration. import typing as _typing -from typing import Any, Iterator, Optional, Tuple, TypeVar, Union, overload +from typing import Any, Iterator, Optional, TypeVar, Union, overload # The same unorthodox Bazel integration causes issues with sys, which # is imported in both modules. unfortunately we can't just rename sys, @@ -32,7 +32,7 @@ if sys.version_info >= (3, 8): filename: Union[str, bytes] = ..., mode: Literal["exec"] = ..., type_comments: bool = ..., - feature_version: Union[None, int, Tuple[int, int]] = ..., + feature_version: Union[None, int, _typing.Tuple[int, int]] = ..., ) -> Module: ... @overload def parse( @@ -40,7 +40,7 @@ if sys.version_info >= (3, 8): filename: Union[str, bytes] = ..., mode: str = ..., type_comments: bool = ..., - feature_version: Union[None, int, Tuple[int, int]] = ..., + feature_version: Union[None, int, _typing.Tuple[int, int]] = ..., ) -> AST: ... else: