diff --git a/stdlib/2/ast.pyi b/stdlib/2/ast.pyi index 95bda5480..244b23092 100644 --- a/stdlib/2/ast.pyi +++ b/stdlib/2/ast.pyi @@ -21,7 +21,7 @@ __version__ = ... # type: str PyCF_ONLY_AST = ... # type: int -def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ... +def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> Module: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... def fix_missing_locations(node: AST) -> AST: ... diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index f9488c908..534567650 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -25,7 +25,7 @@ class NodeVisitor(): class NodeTransformer(NodeVisitor): def generic_visit(self, node: AST) -> None: ... -def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ... +def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> Module: ... def copy_location(new_node: AST, old_node: AST) -> AST: ... def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ... def fix_missing_locations(node: AST) -> AST: ...