MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / Pager

Class Pager

src/core/db/repository.py:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77@dataclass
78class Pager:
79 limit: int | None = None
80 offset: int | None = None
81
82 @property
83 def page(self) -> int | None:
84 if self.offset is None or self.limit is None or self.limit == 0:
85 return None
86 return (self.offset // self.limit) + 1
87
88
89@dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected