From e23c75f79f89436b7e52d28ef5f5f3b2e8476810 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 17 Feb 2026 14:50:27 +0100 Subject: [PATCH] fix: remove erroneous async keyword from sync ActorClient.default_build The sync ActorClient.default_build was incorrectly declared as `async def`, causing it to return a coroutine object instead of a BuildClient. This was a copy-paste error from the async variant. Co-Authored-By: Claude Opus 4.6 --- src/apify_client/clients/resource_clients/actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apify_client/clients/resource_clients/actor.py b/src/apify_client/clients/resource_clients/actor.py index 5a312a40..6c974050 100644 --- a/src/apify_client/clients/resource_clients/actor.py +++ b/src/apify_client/clients/resource_clients/actor.py @@ -439,7 +439,7 @@ def runs(self) -> RunCollectionClient: """Retrieve a client for the runs of this Actor.""" return RunCollectionClient(**self._sub_resource_init_options(resource_path='runs')) - async def default_build( + def default_build( self, *, wait_for_finish: int | None = None,