File size: 252 Bytes
53dbcc1
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import inspect
from collections.abc import Callable
from typing import Any, Protocol


class Dispatcher(Protocol):
    def __call__(
        self, command: Callable[..., Any], bound: inspect.BoundArguments, ignored: dict[str, Any], /
    ) -> Any: ...