PaginatedHistory#
- class gafaelfawr.models.history.PaginatedHistory(entries, count, next_cursor=None, prev_cursor=None)#
Bases:
Generic[E]Encapsulates paginated history entries with pagination information.
Holds a paginated list of a generic type, complete with a count and cursors. Can hold any type of entry, but uses a
HistoryCursor, so implicitly requires the type be one that is meaningfully paginated by that type of cursor.- Parameters:
count (
int) –next_cursor (
Optional[HistoryCursor], default:None) –prev_cursor (
Optional[HistoryCursor], default:None) –