Fix return type annotations for ast.parse (#14369)

This commit is contained in:
Hunter Hogan
2025-07-04 17:34:22 -05:00
committed by GitHub
parent 9ff94f1ab8
commit 2f198bcfee
+2 -2
View File
@@ -1797,7 +1797,7 @@ if sys.version_info >= (3, 13):
type_comments: bool = False,
feature_version: None | int | tuple[int, int] = None,
optimize: Literal[-1, 0, 1, 2] = -1,
) -> AST: ...
) -> mod: ...
else:
@overload
@@ -1868,7 +1868,7 @@ else:
*,
type_comments: bool = False,
feature_version: None | int | tuple[int, int] = None,
) -> AST: ...
) -> mod: ...
def literal_eval(node_or_string: str | AST) -> Any: ...