Source code for betty.dispatch

"""
Provide the Dispatch API.
"""

from typing import Any, Sequence, Callable, Awaitable

TargetedDispatcher = Callable[..., Awaitable[Sequence[Any]]]


[docs] class Dispatcher:
[docs] def dispatch(self, target_type: type[Any]) -> TargetedDispatcher: raise NotImplementedError(repr(self))