Skip to content

Commit ac49bd6

Browse files
committed
Merge branch 'main' into py3.14
2 parents 77b1c9c + 9a0ad91 commit ac49bd6

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

stdlib/ast.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ class FunctionDef(stmt):
164164
) -> None: ...
165165

166166
if sys.version_info >= (3, 14):
167-
def __replace__( # type: ignore[override]
167+
def __replace__(
168168
self,
169169
*,
170170
name: str = ...,
171171
args: arguments = ...,
172172
body: list[stmt] = ...,
173173
decorator_list: list[expr] = ...,
174-
returns: expr | None,
175-
type_comment: str | None,
174+
returns: expr | None = ...,
175+
type_comment: str | None = ...,
176176
type_params: list[type_param] = ...,
177177
**kwargs: Unpack[_Attributes],
178178
) -> Self: ...
@@ -241,15 +241,15 @@ class AsyncFunctionDef(stmt):
241241
) -> None: ...
242242

243243
if sys.version_info >= (3, 14):
244-
def __replace__( # type: ignore[override]
244+
def __replace__(
245245
self,
246246
*,
247247
name: str = ...,
248248
args: arguments = ...,
249249
body: list[stmt] = ...,
250250
decorator_list: list[expr] = ...,
251-
returns: expr | None,
252-
type_comment: str | None,
251+
returns: expr | None = ...,
252+
type_comment: str | None = ...,
253253
type_params: list[type_param] = ...,
254254
) -> Self: ...
255255

@@ -728,7 +728,7 @@ class Assert(stmt):
728728
def __init__(self, test: expr, msg: expr | None = None, **kwargs: Unpack[_Attributes]) -> None: ...
729729

730730
if sys.version_info >= (3, 14):
731-
def __replace__(self, *, test: expr = ..., msg: expr | None, **kwargs: Unpack[_Attributes]) -> Self: ... # type: ignore[override]
731+
def __replace__(self, *, test: expr = ..., msg: expr | None = ..., **kwargs: Unpack[_Attributes]) -> Self: ...
732732

733733
class Import(stmt):
734734
if sys.version_info >= (3, 10):
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
from typing import Any
1+
from typing import TypedDict, type_check_only
2+
3+
@type_check_only
4+
class _Versions(TypedDict):
5+
dirty: bool
6+
error: None
7+
full_revisionid: str
8+
version: str
29

310
version_json: str
411

5-
def get_versions() -> dict[str, Any]: ...
12+
def get_versions() -> _Versions: ...

0 commit comments

Comments
 (0)