1 from typing import Any, Callable, Generic, Mapping, Optional, TypeVar, overload
\r
7 class _SingleDispatchCallable(Generic[_T]):
\r
8 registry = ... # type: Mapping[Any, Callable[..., _T]]
\r
9 def dispatch(self, cls: Any) -> Callable[..., _T]: ...
\r
11 def register(self, cls: Any) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
\r
13 def register(self, cls: Any, func: Callable[..., _T]) -> Callable[..., _T]: ...
\r
14 def _clear_cache(self) -> None: ...
\r
15 def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
\r
17 def singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_T]: ...
\r