From 306b4694ae382e6b9085689606156b17f4166cba Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Wed, 20 Feb 2019 17:12:11 +0000 Subject: [PATCH] Remove redundant definition of ast.PyCF_ONLY_AST (#2803) This gets imported from `_ast`, so the definition was redundant. This causes problems with the new mypy semantic analyzer, as it will flag the redefinition as an error. --- stdlib/3/ast.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index e385ec8a3..7f2f33583 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -27,5 +27,3 @@ def iter_child_nodes(node: AST) -> Iterator[AST]: ... def iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]]: ... def literal_eval(node_or_string: Union[str, AST]) -> Any: ... def walk(node: AST) -> Iterator[AST]: ... - -PyCF_ONLY_AST = ... # type: int