mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Fix return type annotations for ast.parse (#14369)
This commit is contained in:
+2
-2
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user