Make tkinter.Event equivalent to tkinter.Event[tkinter.Misc] (#14053)

This commit is contained in:
Akuli
2025-05-13 23:50:13 +03:00
committed by GitHub
parent 68f4864c5e
commit 9589e369f8
+1 -1
View File
@@ -286,7 +286,7 @@ else:
_W = TypeVar("_W", bound=Misc)
# Events considered covariant because you should never assign to event.widget.
_W_co = TypeVar("_W_co", covariant=True, bound=Misc)
_W_co = TypeVar("_W_co", covariant=True, bound=Misc, default=Misc)
class Event(Generic[_W_co]):
serial: int