from abc import abstractmethod class DbService: def __init__(self) -> None: super().__init__() @abstractmethod def get_fact(self): raise NotImplementedError @abstractmethod def get_multiple_facts(self, count=5): raise NotImplementedError