You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bfd88a
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: type query parameters with a shared QueryParams alias (#1164)
- Adds `QueryParamValue` and `QueryParams` to `apify_client.types` and
uses them for every `params` input in the client (`HttpClient.call`,
`_build_params`, default params, wait and batch helpers), generalizing
the inline type from #1153.
- The union is exactly what the client converts or sends unchanged
(`str`, `int`, `float`, `bool`, `Decimal`, `datetime`, `list[str]`,
`None`); a list of non-strings raised `TypeError`, and a `timedelta`,
tuple, enum or dict was sent as its repr, so both are now type errors.
- Custom HTTP clients overriding `call` with `params: dict[str, Any] |
None` should accept `QueryParams | None`; runtime behavior is unchanged.
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments