From 8da3ee7d50e86d498c8982be48a0284a00374e7d Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 8 Oct 2026 09:40:42 +0200 Subject: [PATCH] fix: type `example_run_input_body` as `str` --- src/apify_client/_resource_clients/actor.py | 10 ++++++---- src/apify_client/_resource_clients/actor_collection.py | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/apify_client/_resource_clients/actor.py b/src/apify_client/_resource_clients/actor.py index a4be92f3..f8695dcb 100644 --- a/src/apify_client/_resource_clients/actor.py +++ b/src/apify_client/_resource_clients/actor.py @@ -119,7 +119,7 @@ def update( default_run_max_items: int | None = None, default_run_memory_mbytes: int | None = None, default_run_timeout: timedelta | None = None, - example_run_input_body: Any = None, + example_run_input_body: str | None = None, example_run_input_content_type: str | None = None, actor_standby_is_enabled: bool | None = None, actor_standby_desired_requests_per_actor_run: int | None = None, @@ -153,7 +153,8 @@ def update( by runs of this Actor, if the Actor is charged per result. default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes. default_run_timeout: Default timeout for the runs of this Actor. - example_run_input_body: Input to be prefilled as default input to new users of this Actor. + example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized + as a string (e.g. `json.dumps(input)` for a JSON input). example_run_input_content_type: The content type of the example run input. actor_standby_is_enabled: Whether the Actor Standby is enabled. actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for @@ -653,7 +654,7 @@ async def update( default_run_max_items: int | None = None, default_run_memory_mbytes: int | None = None, default_run_timeout: timedelta | None = None, - example_run_input_body: Any = None, + example_run_input_body: str | None = None, example_run_input_content_type: str | None = None, actor_standby_is_enabled: bool | None = None, actor_standby_desired_requests_per_actor_run: int | None = None, @@ -687,7 +688,8 @@ async def update( by runs of this Actor, if the Actor is charged per result. default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes. default_run_timeout: Default timeout for the runs of this Actor. - example_run_input_body: Input to be prefilled as default input to new users of this Actor. + example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized + as a string (e.g. `json.dumps(input)` for a JSON input). example_run_input_content_type: The content type of the example run input. actor_standby_is_enabled: Whether the Actor Standby is enabled. actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for diff --git a/src/apify_client/_resource_clients/actor_collection.py b/src/apify_client/_resource_clients/actor_collection.py index f30146a0..1478fe98 100644 --- a/src/apify_client/_resource_clients/actor_collection.py +++ b/src/apify_client/_resource_clients/actor_collection.py @@ -123,7 +123,7 @@ def create( default_run_max_items: int | None = None, default_run_memory_mbytes: int | None = None, default_run_timeout: timedelta | None = None, - example_run_input_body: Any = None, + example_run_input_body: str | None = None, example_run_input_content_type: str | None = None, actor_standby_is_enabled: bool | None = None, actor_standby_desired_requests_per_actor_run: int | None = None, @@ -154,7 +154,8 @@ def create( of this Actor, if the Actor is charged per result. default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes. default_run_timeout: Default timeout for the runs of this Actor. - example_run_input_body: Input to be prefilled as default input to new users of this Actor. + example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized + as a string (e.g. `json.dumps(input)` for a JSON input). example_run_input_content_type: The content type of the example run input. actor_standby_is_enabled: Whether the Actor Standby is enabled. actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for @@ -302,7 +303,7 @@ async def create( default_run_max_items: int | None = None, default_run_memory_mbytes: int | None = None, default_run_timeout: timedelta | None = None, - example_run_input_body: Any = None, + example_run_input_body: str | None = None, example_run_input_content_type: str | None = None, actor_standby_is_enabled: bool | None = None, actor_standby_desired_requests_per_actor_run: int | None = None, @@ -333,7 +334,8 @@ async def create( of this Actor, if the Actor is charged per result. default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes. default_run_timeout: Default timeout for the runs of this Actor. - example_run_input_body: Input to be prefilled as default input to new users of this Actor. + example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized + as a string (e.g. `json.dumps(input)` for a JSON input). example_run_input_content_type: The content type of the example run input. actor_standby_is_enabled: Whether the Actor Standby is enabled. actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for