From 4f4a5ad755b8e28390a9a83331cf88471c47bc0a Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 11 May 2026 18:22:06 +0300 Subject: [PATCH 1/2] Delete tkinter.Pack.pack_content and similarly Grid and Place --- stdlib/tkinter/__init__.pyi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index 1d7c9998ec43..67af29e6e9b5 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -1112,8 +1112,6 @@ class Pack: ) -> None: ... def pack_forget(self) -> None: ... def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been packed - if sys.version_info >= (3, 15): - def pack_content(self) -> list[Widget]: ... pack = pack_configure forget = pack_forget propagate = Misc.pack_propagate @@ -1152,8 +1150,6 @@ class Place: ) -> None: ... def place_forget(self) -> None: ... def place_info(self) -> _PlaceInfo: ... - if sys.version_info >= (3, 15): - def place_content(self) -> list[Widget]: ... place = place_configure info = place_info @@ -1191,8 +1187,6 @@ class Grid: def grid_forget(self) -> None: ... def grid_remove(self) -> None: ... def grid_info(self) -> _GridInfo: ... - if sys.version_info >= (3, 15): - def grid_content(self, row: int | None = None, column: int | None = None) -> list[Widget]: ... grid = grid_configure location = Misc.grid_location size = Misc.grid_size From ff5741d98261587b281f0c5975cecdf20295bef1 Mon Sep 17 00:00:00 2001 From: Akuli Date: Mon, 11 May 2026 18:37:49 +0300 Subject: [PATCH 2/2] allow list --- stdlib/@tests/stubtest_allowlists/py315.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py315.txt b/stdlib/@tests/stubtest_allowlists/py315.txt index 5be3acbcc070..26907c9c3e6c 100644 --- a/stdlib/@tests/stubtest_allowlists/py315.txt +++ b/stdlib/@tests/stubtest_allowlists/py315.txt @@ -225,7 +225,11 @@ profiling.sampling.module_utils profiling.sampling.opcode_utils profiling.sampling.sample -# These conflicting aliases are just like tkinter.*.slaves in common.txt. +# These aliases are just like the aliases named "slaves" instead of "content". +# See common.txt. tkinter.Grid.content +tkinter.Grid.grid_content tkinter.Pack.content +tkinter.Pack.pack_content tkinter.Place.content +tkinter.Place.place_content