cleanup: Remove MetaModel.
This commit is contained in:
@@ -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:
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user