Change ast's parse signature to return Module (#836)

This commit is contained in:
Ethan
2017-01-17 09:49:41 -08:00
committed by Guido van Rossum
parent 35978a7ca5
commit 3b30996733
2 changed files with 2 additions and 2 deletions

View File

@@ -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: ...