from typing import Optional from .container import Container from .methodcall import MethodCall, MethodResultCallable class MethodCallRouterInterface: def route_call( self, service: str, call: MethodCall, from_container: Optional[Container], on_result: MethodResultCallable, ) -> None: raise NotImplementedError(service, call)