Skip to content

Commit 2f198bc

Browse files
authored
Fix return type annotations for ast.parse (#14369)
1 parent 9ff94f1 commit 2f198bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/ast.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ if sys.version_info >= (3, 13):
17971797
type_comments: bool = False,
17981798
feature_version: None | int | tuple[int, int] = None,
17991799
optimize: Literal[-1, 0, 1, 2] = -1,
1800-
) -> AST: ...
1800+
) -> mod: ...
18011801

18021802
else:
18031803
@overload
@@ -1868,7 +1868,7 @@ else:
18681868
*,
18691869
type_comments: bool = False,
18701870
feature_version: None | int | tuple[int, int] = None,
1871-
) -> AST: ...
1871+
) -> mod: ...
18721872

18731873
def literal_eval(node_or_string: str | AST) -> Any: ...
18741874

0 commit comments

Comments
 (0)