lol
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -301,7 +301,7 @@ class _HasEventsDispatch(Generic[_ET]):
|
||||
"Type[_Dispatch[_ET]]",
|
||||
type(
|
||||
"%sDispatch" % classname,
|
||||
(dispatch_base,), # type: ignore
|
||||
(dispatch_base,),
|
||||
{"__slots__": event_names},
|
||||
),
|
||||
)
|
||||
@@ -323,7 +323,7 @@ class _HasEventsDispatch(Generic[_ET]):
|
||||
assert dispatch_target_cls is not None
|
||||
if (
|
||||
hasattr(dispatch_target_cls, "__slots__")
|
||||
and "_slots_dispatch" in dispatch_target_cls.__slots__ # type: ignore # noqa: E501
|
||||
and "_slots_dispatch" in dispatch_target_cls.__slots__
|
||||
):
|
||||
dispatch_target_cls.dispatch = slots_dispatcher(cls)
|
||||
else:
|
||||
|
||||
@@ -241,7 +241,7 @@ class _EventKey(Generic[_ET]):
|
||||
):
|
||||
self.target = target
|
||||
self.identifier = identifier
|
||||
self.fn = fn # type: ignore[assignment]
|
||||
self.fn = fn
|
||||
if isinstance(fn, types.MethodType):
|
||||
self.fn_key = id(fn.__func__), id(fn.__self__)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user