@@ -299,13 +299,6 @@ class Supports(Generic[_AssociatedTypeDef]):
299
299
__slots__ = ()
300
300
301
301
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
-
309
302
@final # noqa: WPS214
310
303
class _TypeClass ( # noqa: WPS214
311
304
Generic [_InstanceType , _SignatureType , _AssociatedType , _Fullname ],
@@ -331,7 +324,7 @@ class _TypeClass( # noqa: WPS214
331
324
'_dispatch_cache' ,
332
325
)
333
326
334
- _dispatch_cache : Dict [type , Callback ]
327
+ _dispatch_cache : Dict [type , Callable ]
335
328
_cache_token : Optional [object ]
336
329
337
330
def __init__ (
@@ -609,7 +602,7 @@ def _dispatch(self, instance, instance_type: type) -> Optional[Callable]:
609
602
610
603
return _find_impl (instance_type , self ._exact_types )
611
604
612
- def _dispatch_delegate (self , instance ) -> Optional [Callback ]:
605
+ def _dispatch_delegate (self , instance ) -> Optional [Callable ]:
613
606
for delegate , callback in self ._delegates .items ():
614
607
if isinstance (instance , delegate ):
615
608
return callback
0 commit comments