From 0155070c2b47c8844ba44463cf1533c48e5fc61b Mon Sep 17 00:00:00 2001 From: "shuwen.wu" Date: Wed, 2 Sep 2026 16:18:15 +0800 Subject: [PATCH] fix: remove duplicate "of" in pagination docstrings Fix repeated-word typos in pagination return docstrings for collections, models, and predictions. --- 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`. """