Skip to content

fix: correct the Actor input type of run_input - #1271

Merged
vdusek merged 2 commits into
masterfrom
feat/actor-input-type
Dec 2, 2026
Merged

vdusek merged 2 commits into
masterfrom
feat/actor-input-type

Conversation

@vdusek

@vdusek vdusek commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds ActorInput to apify_client.types and uses it for run_input on ActorClient.start, call, and validate_input, and on RunClient.metamorph, in both the sync and async clients. These parameters were typed as Any. Their docstrings point to ActorInput for the accepted values.

The alias follows ActorInput in the JS client (Dictionary | readonly Dictionary[] | Uint8Array | ArrayBuffer). It also includes str and StreamedBodySource, because this client accepts both as run input.

Only the annotations and docstrings change. Runtime behavior is the same, so a call that type checkers now flag, such as run_input=42, still runs as before.

✍️ Drafted by Claude Code

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Dec 1, 2026
@vdusek vdusek self-assigned this Dec 1, 2026
@vdusek vdusek changed the title feat: add ActorInput type for the run_input parameter fix: correct the Actor input type of run_input Dec 1, 2026
@vdusek
vdusek marked this pull request as ready for review December 1, 2026 16:19
@vdusek
vdusek requested a review from Pijukatel December 1, 2026 16:19
@vdusek
vdusek merged commit 87c6875 into master Dec 2, 2026
35 checks passed
@vdusek
vdusek deleted the feat/actor-input-type branch December 2, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants