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

This commit is contained in:
Akuli authored and GitHub committed 2025-05-13 22:50:13 +02:00
1 parent 68f4864c5e
commit 9589e369f8
1 file changed
+1 -1
+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