Skip to content

Commit b0dc646

Browse files
committed
fix: remove unused replicate_max_lifetime parameter
Remove the unused `replicate_max_lifetime` parameter from predictions.create methods in both sync and async implementations. This parameter was replaced by `cancel_after` but was not fully removed, causing ARG002 linting errors.
1 parent 8a2a0dd commit b0dc646

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/replicate/resources/models/predictions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def create(
5858
cancel_after: str | Omit = omit,
5959
prefer: str | Omit = omit,
6060
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
61-
replicate_max_lifetime: str | Omit = omit,
6261
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6362
# The extra values given here take precedence over values defined on the client or passed to this method.
6463
extra_headers: Headers | None = None,
@@ -230,7 +229,6 @@ async def create(
230229
cancel_after: str | Omit = omit,
231230
prefer: str | Omit = omit,
232231
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
233-
replicate_max_lifetime: str | Omit = omit,
234232
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
235233
# The extra values given here take precedence over values defined on the client or passed to this method.
236234
extra_headers: Headers | None = None,

src/replicate/resources/predictions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def create(
6969
cancel_after: str | Omit = omit,
7070
prefer: str | Omit = omit,
7171
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
72-
replicate_max_lifetime: str | Omit = omit,
7372
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7473
# The extra values given here take precedence over values defined on the client or passed to this method.
7574
extra_headers: Headers | None = None,
@@ -532,7 +531,6 @@ async def create(
532531
cancel_after: str | Omit = omit,
533532
prefer: str | Omit = omit,
534533
file_encoding_strategy: Optional["FileEncodingStrategy"] = None,
535-
replicate_max_lifetime: str | Omit = omit,
536534
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
537535
# The extra values given here take precedence over values defined on the client or passed to this method.
538536
extra_headers: Headers | None = None,

0 commit comments

Comments
 (0)