| 76 | |
| 77 | @dataclass |
| 78 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected