Skip to content

Commit 9589e36

Browse files
authored
Make tkinter.Event equivalent to tkinter.Event[tkinter.Misc] (#14053)
1 parent 68f4864 commit 9589e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/tkinter/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ else:
286286

287287
_W = TypeVar("_W", bound=Misc)
288288
# Events considered covariant because you should never assign to event.widget.
289-
_W_co = TypeVar("_W_co", covariant=True, bound=Misc)
289+
_W_co = TypeVar("_W_co", covariant=True, bound=Misc, default=Misc)
290290

291291
class Event(Generic[_W_co]):
292292
serial: int

0 commit comments

Comments
 (0)