Add Improvement Repository model

This commit is contained in:
Marty Oehme 2025-06-06 11:13:25 +02:00
parent 029a6ddb71
commit c216c2d0d7
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View 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