Add show_empty to ast.dump (#11871)

This commit is contained in:
Nikita Sobolev
2024-05-07 13:42:16 +03:00
committed by GitHub
parent 74486c31a2
commit 16dadc8fb5

View File

@@ -336,7 +336,17 @@ if sys.version_info >= (3, 9):
def copy_location(new_node: _T, old_node: AST) -> _T: ...
if sys.version_info >= (3, 9):
if sys.version_info >= (3, 13):
def dump(
node: AST,
annotate_fields: bool = True,
include_attributes: bool = False,
*,
indent: int | str | None = None,
show_empty: bool = False,
) -> str: ...
elif sys.version_info >= (3, 9):
def dump(
node: AST, annotate_fields: bool = True, include_attributes: bool = False, *, indent: int | str | None = None
) -> str: ...