Skip to content

Commit b2b1103

Browse files
vdusekclaude
andauthored
fix: remove erroneous async keyword from sync ActorClient.default_build (#620)
## Summary - `ActorClient.default_build` (the **sync** variant) was incorrectly declared as `async def` — a copy-paste error from the async variant - Calling it returned a coroutine object instead of a `BuildClient`, making it unusable without `await` (which makes no sense on the sync client) - Removed the `async` keyword so it behaves as a regular synchronous method ## Test plan - [ ] Verify existing unit tests pass - [ ] Verify `ActorClient(...).default_build()` returns a `BuildClient` directly (not a coroutine) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 00e8621 commit b2b1103

File tree

1 file changed

+1
-1
lines changed
  • src/apify_client/clients/resource_clients

1 file changed

+1
-1
lines changed

src/apify_client/clients/resource_clients/actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def runs(self) -> RunCollectionClient:
439439
"""Retrieve a client for the runs of this Actor."""
440440
return RunCollectionClient(**self._sub_resource_init_options(resource_path='runs'))
441441

442-
async def default_build(
442+
def default_build(
443443
self,
444444
*,
445445
wait_for_finish: int | None = None,

0 commit comments

Comments
 (0)