mp_update/core/external/base.py

13 lines
264 B
Python
Raw Permalink Normal View History

2024-07-15 18:39:41 +03:00
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()