| 1234567891011121314151617181920212223242526 | # (c) Nelen & Schuurmansfrom typing import Genericfrom typing import Optionalfrom typing import Sequencefrom typing import TypeVarfrom pydantic import BaseModel__all__ = ["Page", "PageOptions"]T = TypeVar("T")class PageOptions(BaseModel):    limit: int    offset: int = 0    order_by: str = "id"    ascending: bool = Trueclass Page(BaseModel, Generic[T]):    total: int    items: Sequence[T]    limit: Optional[int] = None    offset: Optional[int] = None
 |