Add Improvement Repository model
This commit is contained in:
parent
029a6ddb71
commit
c216c2d0d7
1 changed files with 15 additions and 0 deletions
15
prophet/domain/improvement_repo.py
Normal file
15
prophet/domain/improvement_repo.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
|
||||||
|
from typing import Protocol
|
||||||
|
|
||||||
|
from prophet.domain.improvement import Improvement
|
||||||
|
|
||||||
|
|
||||||
|
class IImprovementRepo(Protocol):
|
||||||
|
def add(self, improvement: Improvement) -> None:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
def get(self, id: str) -> Improvement:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
def get_all(self) -> list[Improvement]:
|
||||||
|
raise NotImplementedError
|
||||||
Loading…
Add table
Add a link
Reference in a new issue