Skip to content

Commit

Permalink
Update src/frequenz/client/common/pagination/pagination.py
Browse files Browse the repository at this point in the history
Co-authored-by: Leandro Lucarella <luca@llucax.com>
Signed-off-by: flora-hofmann-frequenz <88315331+flora-hofmann-frequenz@users.noreply.github.com>
  • Loading branch information
flora-hofmann-frequenz and llucax authored Feb 13, 2024
1 parent 06477f1 commit a6522e4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/frequenz/client/common/pagination/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,13 @@ def to_proto(self) -> PBPaginationParams:

@dataclass(frozen=True, kw_only)
class PaginationInfo:
"""
Information about the pagination of a list request.
Args:
total_items: The total number of items that match the request.
next_page_token: The token identifying the next page of results.
"""
"""Information about the pagination of a list request."""

total_items: int
"""The total number of items that match the request."""

next_page_token: str | None = None
"""The token identifying the next page of results."""

@classmethod
def from_pb(cls, pagination_info: PBPaginationInfo) -> PaginationInfo:
Expand Down

0 comments on commit a6522e4

Please sign in to comment.