Skip to content

Commit 19e5ce6

Browse files
committed
replicate: fix pagination docstrings
Signed-off-by: Lichao Chen <lichao_chen@outlook.com>
1 parent d2956ff commit 19e5ce6

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

replicate/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def list(
7272
Parameters:
7373
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
7474
Returns:
75-
Page[Collection]: A page of of model collections.
75+
Page[Collection]: A page of model collections.
7676
Raises:
7777
ValueError: If `cursor` is `None`.
7878
"""
@@ -99,7 +99,7 @@ async def async_list(
9999
Parameters:
100100
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
101101
Returns:
102-
Page[Collection]: A page of of model collections.
102+
Page[Collection]: A page of model collections.
103103
Raises:
104104
ValueError: If `cursor` is `None`.
105105
"""

replicate/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def list(self, cursor: Union[str, "ellipsis", None] = ...) -> Page[Model]: # no
163163
Parameters:
164164
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
165165
Returns:
166-
Page[Model]: A page of of models.
166+
Page[Model]: A page of models.
167167
Raises:
168168
ValueError: If `cursor` is `None`.
169169
"""
@@ -190,7 +190,7 @@ async def async_list(
190190
Parameters:
191191
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
192192
Returns:
193-
Page[Model]: A page of of models.
193+
Page[Model]: A page of models.
194194
Raises:
195195
ValueError: If `cursor` is `None`.
196196
"""

replicate/prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def list(self, cursor: Union[str, "ellipsis", None] = ...) -> Page[Prediction]:
303303
Parameters:
304304
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
305305
Returns:
306-
Page[Prediction]: A page of of predictions.
306+
Page[Prediction]: A page of predictions.
307307
Raises:
308308
ValueError: If `cursor` is `None`.
309309
"""
@@ -332,7 +332,7 @@ async def async_list(
332332
Parameters:
333333
cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`.
334334
Returns:
335-
Page[Prediction]: A page of of predictions.
335+
Page[Prediction]: A page of predictions.
336336
Raises:
337337
ValueError: If `cursor` is `None`.
338338
"""

0 commit comments

Comments
 (0)