diff --git a/src/routes/lib.py b/src/routes/lib.py index a36ebf8..997229e 100644 --- a/src/routes/lib.py +++ b/src/routes/lib.py @@ -16,34 +16,3 @@ class ModelField(NamedTuple): required: bool can_create: bool can_edit: bool - - -class ModelClassABC[RowT, Payload: TypedDict, CreateParams: TypedDict, EditParams: TypedDict]: - def __init__(self, app: web.Application, row: RowT): - self.app = app - self.data = app[datamodelsv] - self.row = row - - @classmethod - async def fetch_from_id(cls, app: web.Application, document_id: int) -> Optional[Self]: - ... - - @classmethod - async def query( - cls, - **kwargs - ) -> List[Self]: - ... - - @classmethod - async def create(cls, app: web.Application, **kwargs: Unpack[CreateParams]) -> Self: - ... - - async def prepare(self) -> Payload: - ... - - async def edit(self, **kwargs: Unpack[EditParams]): - ... - - async def delete(self) -> Payload: - ...