Skip to content

Commit

Permalink
Fix PaginationParams attributes types
Browse files Browse the repository at this point in the history
The `page_size` and `page_token` attributes of the `PaginationParams`
class are not optional, so they should not be declared as `int | None`.

Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Nov 5, 2024
1 parent 47f66a5 commit 6c69be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frequenz/client/common/pagination/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
class Params:
"""Parameters for paginating list requests."""

page_size: int | None = None
page_size: int
"""The maximum number of results to be returned per request."""

page_token: str | None = None
page_token: str
"""The token identifying a specific page of the list results."""

@classmethod
Expand Down

0 comments on commit 6c69be7

Please sign in to comment.