mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
15 lines
322 B
Python
15 lines
322 B
Python
from abc import ABC, abstractmethod
|
|
from uuid import UUID
|
|
|
|
from domain.tasks.tasks import Task
|
|
|
|
|
|
class TaskRepository(ABC):
|
|
@abstractmethod
|
|
def create(self, task: Task) -> Task: ...
|
|
|
|
@abstractmethod
|
|
def get(self, task_id: UUID) -> Task: ...
|
|
|
|
@abstractmethod
|
|
def save(self, task: Task) -> None: ...
|