import abc from config import Settings class ExternalService(abc.ABC): @abc.abstractmethod async def connect(self, config: Settings): raise NotImplemented() @abc.abstractmethod async def get_session(self): raise NotImplemented()