diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index 241f874f1..181ef7950 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -1,16 +1,16 @@ # Python 3.5 ast import typing -from typing import Any, Union, Iterator +from typing import Any, Union, Iterator, Optional from _ast import * class NodeVisitor(): def visit(self, node: AST) -> Any: ... - def generic_visit(self, node: AST) -> None: ... + def generic_visit(self, node: AST) -> Any: ... class NodeTransformer(NodeVisitor): - def generic_visit(self, node: AST) -> None: ... + def generic_visit(self, node: AST) -> Optional[AST]: ... def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> Module: ... def copy_location(new_node: AST, old_node: AST) -> AST: ...