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

Method __init__

src/core/db/repository.py:103–107  ·  view source on GitHub ↗
(self, items: Sequence[T], total: int, page: int, per_page: int)

Source from the content-addressed store, hash-verified

101
102class Paginator(Generic[T]):
103 def __init__(self, items: Sequence[T], total: int, page: int, per_page: int):
104 self.items = items
105 self.total = total
106 self.page = page
107 self.per_page = per_page
108
109 @property
110 def pages(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected