Files
library/back/core/typing.py
2023-09-13 20:37:14 +03:00

10 lines
229 B
Python

from typing import TypeVar
from pydantic import BaseModel
from core.database import Base
Model = TypeVar("Model", bound=Base)
Schema = TypeVar("Schema", bound=BaseModel)
CreateSchema = TypeVar("CreateSchema", bound=BaseModel)