from __future__ import annotations

from dataclasses import dataclass


@dataclass
class Page:
    limit: int
    offset: int

    def next_page(self) -> Page:
        return Page(limit=self.limit, offset=self.offset + self.limit)
