recopytex/backend/repository/abstract_repository.py

24 lines
484 B
Python
Raw Normal View History

2022-12-21 13:10:04 +00:00
import abc
class AbstractRepository(abc.ABC):
@abc.abstractmethod
def add(self, element):
raise NotImplementedError
@abc.abstractmethod
def update(self, element):
raise NotImplementedError
@abc.abstractmethod
def list(self):
raise NotImplementedError
@abc.abstractmethod
def get(self, reference):
raise NotImplementedError
@abc.abstractmethod
def delete(self, reference):
raise NotImplementedError