Skip to content

Commit 8f5a80e

Browse files
authored
Update tkinter for 3.14 (#14240)
1 parent b7bc6f3 commit 8f5a80e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ multiprocessing.managers._BaseDictProxy.fromkeys
1313
multiprocessing.process.BaseProcess.interrupt
1414
multiprocessing.synchronize.SemLock.locked
1515
tarfile.TarFile.zstopen
16-
tkinter.Event.__class_getitem__
1716

1817
# =========================
1918
# New errors in Python 3.14

stdlib/tkinter/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from _typeshed import Incomplete, MaybeNone, StrOrBytesPath
44
from collections.abc import Callable, Iterable, Mapping, Sequence
55
from tkinter.constants import *
66
from tkinter.font import _FontDescription
7-
from types import TracebackType
7+
from types import GenericAlias, TracebackType
88
from typing import Any, ClassVar, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
99
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated
1010

@@ -308,6 +308,8 @@ class Event(Generic[_W_co]):
308308
type: EventType
309309
widget: _W_co
310310
delta: int
311+
if sys.version_info >= (3, 14):
312+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
311313

312314
def NoDefaultRoot() -> None: ...
313315

0 commit comments

Comments
 (0)