From b0f16ee58e9aa25fa61bd09699072848a56548c3 Mon Sep 17 00:00:00 2001 From: chenlichao Date: Wed, 26 Aug 2026 10:06:00 -0700 Subject: [PATCH] docs: fix duplicate 'of' in pagination docstrings Signed-off-by: chenlichao --- replicate/collection.py | 4 ++-- replicate/model.py | 4 ++-- replicate/prediction.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/replicate/collection.py b/replicate/collection.py index 1a54586c..c339aecf 100644 --- a/replicate/collection.py +++ b/replicate/collection.py @@ -72,7 +72,7 @@ def list( Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Collection]: A page of of model collections. + Page[Collection]: A page of model collections. Raises: ValueError: If `cursor` is `None`. """ @@ -99,7 +99,7 @@ async def async_list( Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Collection]: A page of of model collections. + Page[Collection]: A page of model collections. Raises: ValueError: If `cursor` is `None`. """ diff --git a/replicate/model.py b/replicate/model.py index a52459e9..da3d2bdd 100644 --- a/replicate/model.py +++ b/replicate/model.py @@ -163,7 +163,7 @@ def list(self, cursor: Union[str, "ellipsis", None] = ...) -> Page[Model]: # no Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Model]: A page of of models. + Page[Model]: A page of models. Raises: ValueError: If `cursor` is `None`. """ @@ -190,7 +190,7 @@ async def async_list( Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Model]: A page of of models. + Page[Model]: A page of models. Raises: ValueError: If `cursor` is `None`. """ diff --git a/replicate/prediction.py b/replicate/prediction.py index b4ff047a..3e01b395 100644 --- a/replicate/prediction.py +++ b/replicate/prediction.py @@ -303,7 +303,7 @@ def list(self, cursor: Union[str, "ellipsis", None] = ...) -> Page[Prediction]: Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Prediction]: A page of of predictions. + Page[Prediction]: A page of predictions. Raises: ValueError: If `cursor` is `None`. """ @@ -332,7 +332,7 @@ async def async_list( Parameters: cursor: The cursor to use for pagination. Use the value of `Page.next` or `Page.previous`. Returns: - Page[Prediction]: A page of of predictions. + Page[Prediction]: A page of predictions. Raises: ValueError: If `cursor` is `None`. """