mp_update/core/external/base.py

13 lines
264 B
Python

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()