mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Make tkinter.Event equivalent to tkinter.Event[tkinter.Misc] (#14053)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user