From 7dfa7bedffed9992870045da008cac99ca997f8f Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 27 Nov 2024 23:15:17 -0800 Subject: [PATCH] take Misc.config out --- stdlib/@tests/stubtest_allowlists/common.txt | 1 + stdlib/tkinter/__init__.pyi | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 7f9b1d98945f..454d318a4f7c 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -101,6 +101,7 @@ multiprocessing.managers.SyncManager.Pool multiprocessing.pool.Pool.Process multiprocessing.pool.ThreadPool.Process multiprocessing.synchronize.Semaphore.get_value +tkinter.Misc.config turtle.TNavigator.speed _ctypes.PyObj_FromPtr diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index 80eeba89a139..d6a234d67919 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -627,9 +627,8 @@ class Misc: def __getitem__(self, key: str) -> Any: ... def cget(self, key: str) -> Any: ... def configure(self, cnf: Any = None) -> Any: ... - # this is an alias for configure, but giving it a more precise type - # creates conflicts in the subclasses. - config: Callable[..., Any] = ... + # TODO: config is an alias of configure, but adding that here creates + # conflict with the type of config in the subclasses. See #13149 class CallWrapper: func: Incomplete