refactor!: Mark secondary arguments as keyword-only (#766)
## Summary
Reshapes function/method signatures across the public API so that
secondary parameters must be passed as keyword arguments. Primary
"subject" arguments (e.g. `key`, `value`, `event_name`, `response`) stay
positional.
Affected APIs:
- `KeyValueStoreClient.{get_record, get_record_as_bytes, stream_record,
set_record}` (sync + async) — `signature` / `content_type` are now
keyword-only.
- `RunClient.{charge, get_status_message_watcher}` (sync + async) —
`count`, `idempotency_key`, `to_logger`, `check_period`, `timeout` are
now keyword-only.
- `ApifyApiError(response, attempt, *, method='GET')` — `method` is now
keyword-only.
- Several internal helpers received the same treatment for consistency.
## Why
Keyword-only parameters at API boundaries make call sites
self-documenting and prevent breakage when new options are added between
existing arguments. V
Vlada Dusek committed
4ca99fd6a442ad12adbdfc866e72543c0feaf96b
Parent: cec286c
Committed by GitHub <noreply@github.com>
on 4/28/2026, 1:57:03 PM