Skip to content

Commit e5d6c98

Browse files
committed
Merge remote-tracking branch 'upstream/main' into python315
# Conflicts: # stdlib/@tests/stubtest_allowlists/py315.txt
2 parents 6df830a + d80ed91 commit e5d6c98

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

stdlib/@tests/stubtest_allowlists/py315.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@ profiling.sampling.module_utils
8181
profiling.sampling.opcode_utils
8282
profiling.sampling.sample
8383

84-
# These conflicting aliases are just like tkinter.*.slaves in common.txt.
84+
# These aliases are just like the aliases named "slaves" instead of "content".
85+
# See common.txt.
8586
tkinter.Grid.content
87+
tkinter.Grid.grid_content
8688
tkinter.Pack.content
89+
tkinter.Pack.pack_content
8790
tkinter.Place.content
91+
tkinter.Place.place_content
8892

8993

9094
# =============================================================

stdlib/tkinter/__init__.pyi

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,6 @@ class Pack:
11121112
) -> None: ...
11131113
def pack_forget(self) -> None: ...
11141114
def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been packed
1115-
if sys.version_info >= (3, 15):
1116-
def pack_content(self) -> list[Widget]: ...
11171115
pack = pack_configure
11181116
forget = pack_forget
11191117
propagate = Misc.pack_propagate
@@ -1152,8 +1150,6 @@ class Place:
11521150
) -> None: ...
11531151
def place_forget(self) -> None: ...
11541152
def place_info(self) -> _PlaceInfo: ...
1155-
if sys.version_info >= (3, 15):
1156-
def place_content(self) -> list[Widget]: ...
11571153
place = place_configure
11581154
info = place_info
11591155

@@ -1191,8 +1187,6 @@ class Grid:
11911187
def grid_forget(self) -> None: ...
11921188
def grid_remove(self) -> None: ...
11931189
def grid_info(self) -> _GridInfo: ...
1194-
if sys.version_info >= (3, 15):
1195-
def grid_content(self, row: int | None = None, column: int | None = None) -> list[Widget]: ...
11961190
grid = grid_configure
11971191
location = Misc.grid_location
11981192
size = Misc.grid_size
@@ -3646,7 +3640,7 @@ class Text(Widget, XView, YView):
36463640
nolinestop: bool | None = None,
36473641
overlap: bool | None = None,
36483642
strictlimits: bool | None = None,
3649-
) -> tuple[str, ...]: ...
3643+
) -> tuple[_tkinter.Tcl_Obj, ...]: ...
36503644
else:
36513645
def search(
36523646
self,
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from _typeshed import Incomplete
2-
from collections.abc import Collection, Mapping
1+
from _typeshed import Incomplete, ReadableBuffer
2+
from collections.abc import Collection, Iterable, Mapping
3+
from typing import SupportsBytes, SupportsIndex
34

45
from authlib.jose.rfc7517 import Key, KeySet
56

@@ -8,6 +9,12 @@ class JsonWebKey:
89
@classmethod
910
def generate_key(cls, kty, crv_or_size, options=None, is_private: bool = False): ...
1011
@classmethod
11-
def import_key(cls, raw: Mapping[str, object], options: Mapping[str, object] | None = None) -> Key: ...
12+
def import_key(
13+
cls,
14+
raw: (
15+
str | bytes | float | Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | ReadableBuffer | Mapping[str, object]
16+
),
17+
options: Mapping[str, object] | None = None,
18+
) -> Key: ...
1219
@classmethod
1320
def import_key_set(cls, raw: str | Collection[str] | dict[str, object]) -> KeySet: ...

0 commit comments

Comments
 (0)