@@ -299,13 +299,6 @@ class Supports(Generic[_AssociatedTypeDef]):
299299 __slots__ = ()
300300
301301
302- class Callback (Protocol ):
303- """Complex function annotation, with variadic params."""
304-
305- def __call__ (self , instance , * args , ** kwargs ) -> _ReturnType :
306- """Complex function annotation, with variadic params."""
307-
308-
309302@final # noqa: WPS214
310303class _TypeClass ( # noqa: WPS214
311304 Generic [_InstanceType , _SignatureType , _AssociatedType , _Fullname ],
@@ -331,7 +324,7 @@ class _TypeClass( # noqa: WPS214
331324 '_dispatch_cache' ,
332325 )
333326
334- _dispatch_cache : Dict [type , Callback ]
327+ _dispatch_cache : Dict [type , Callable ]
335328 _cache_token : Optional [object ]
336329
337330 def __init__ (
@@ -609,7 +602,7 @@ def _dispatch(self, instance, instance_type: type) -> Optional[Callable]:
609602
610603 return _find_impl (instance_type , self ._exact_types )
611604
612- def _dispatch_delegate (self , instance ) -> Optional [Callback ]:
605+ def _dispatch_delegate (self , instance ) -> Optional [Callable ]:
613606 for delegate , callback in self ._delegates .items ():
614607 if isinstance (instance , delegate ):
615608 return callback
0 commit comments