File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ def total_number_of_pages(self) -> NonNegativeInt:
2929
3030
3131def iter_pagination_params (
32+ * ,
33+ limit : PositiveInt ,
3234 offset : NonNegativeInt = 0 ,
33- limit : PositiveInt = 100 ,
3435 total_number_of_items : NonNegativeInt | None = None ,
3536) -> Iterable [PageParams ]:
3637
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ async def test_iter_pages_args(
3838
3939 num_pages = 0
4040 page_args = None
41- for page_index , page_args in enumerate (iter_pagination_params (offset , limit )):
41+ for page_index , page_args in enumerate (
42+ iter_pagination_params (offset = offset , limit = limit )
43+ ):
4244
4345 page_items , page_args .total_number_of_items = await get_page (
4446 page_args .offset_current , page_args .limit
You can’t perform that action at this time.
0 commit comments