Skip to content

feat: add timeout request option alongside deprecated timeout_in_seconds#271

Draft
anduril-gh-bot wants to merge 1 commit into
masterfrom
fern-bot/2026-07-07_22-36-55_774
Draft

feat: add timeout request option alongside deprecated timeout_in_seconds#271
anduril-gh-bot wants to merge 1 commit into
masterfrom
fern-bot/2026-07-07_22-36-55_774

Conversation

@anduril-gh-bot

Copy link
Copy Markdown
Collaborator

4.19.0 → 4.20.0

Added

  • RequestOptions.timeout — new float field (in seconds) for setting per-request timeouts, taking precedence over the now-deprecated timeout_in_seconds.

Changed

  • timeout_in_seconds — deprecated in favor of timeout; still honored as a fallback for backward compatibility.

See full changelog

…econds`

Introduce a new `timeout` field (float, seconds) to RequestOptions that
takes precedence over the now-deprecated `timeout_in_seconds` alias. The
HTTP client resolution logic prefers `timeout` when set, falling back to
`timeout_in_seconds` and then the client-level base timeout. Existing
consumers using `timeout_in_seconds` remain fully backward compatible.

Key changes:
- Add `timeout: NotRequired[float]` field to RequestOptions
- Deprecate `timeout_in_seconds` as an alias, preferring `timeout`
- Update sync/async HTTP client timeout resolution to prefer `timeout`
@anduril-gh-bot anduril-gh-bot requested a review from a team as a code owner July 7, 2026 22:37
@asomera-anduril asomera-anduril marked this pull request as draft July 9, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant