Add ast.unparse (#3557)

This commit is contained in:
Batuhan Taşkaya
2019-12-26 18:06:10 +03:00
committed by Sebastian Rittau
parent 89602a89b9
commit 387ea1512a

View File

@@ -49,6 +49,9 @@ else:
@overload
def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ...
if sys.version_info >= (3, 9):
def unparse(ast_obj: AST) -> str: ...
def copy_location(new_node: _T, old_node: AST) -> _T: ...
def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
def fix_missing_locations(node: _T) -> _T: ...