Skip to content

Commit 4d2db4d

Browse files
committed
Page size and token no longer optional in pagination Params
Removed the initialisation to None for the parameters `page_size` and `page_token` in pagination `Params` as they are no longer optional. Signed-off-by: cyiallou - Costas <[email protected]>
1 parent 279833f commit 4d2db4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Summary
44

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

77
## Upgrading
88

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

1111
## New Features
1212

src/frequenz/client/common/pagination/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
class Params:
2020
"""Parameters for paginating list requests."""
2121

22-
page_size: int | None = None
22+
page_size: int
2323
"""The maximum number of results to be returned per request."""
2424

25-
page_token: str | None = None
25+
page_token: str
2626
"""The token identifying a specific page of the list results."""
2727

2828
@classmethod

0 commit comments

Comments
 (0)