Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## Summary

<!-- Here goes a general summary of what this release is about -->
Update of the Pagination `Params` data class.

## Upgrading

<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
* Pagination `Params` has been changed such that the `page_size` and `page_token` fields are now no longer optional.

## New Features

Expand Down
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
Loading