Skip to content

Add per-request timeout support#60

Merged
wilsonfreitas merged 1 commit into
mainfrom
issue-59-sgs-timeout
Jun 14, 2026
Merged

Add per-request timeout support#60
wilsonfreitas merged 1 commit into
mainfrom
issue-59-sgs-timeout

Conversation

@wilsonfreitas

Copy link
Copy Markdown
Owner

Summary

  • Add a shared request-timeout type/helper that preserves the existing client default when timeout is omitted.
  • Expose keyword-only timeout support across SGS, currency, and OData sync/async request paths.
  • Document timeout usage and add focused tests proving the value is passed to HTTP clients without changing global defaults.

Fixes #59

Verification

  • uv run pytest tests/test_request_timeout.py tests/test_sgs_negative.py tests/test_currency.py tests/test_odata.py tests/test_async.py
  • uv run ruff check bcb/ tests/
  • uv run ruff format --check bcb/ tests/
  • uv run mypy bcb/
  • uv run pytest -m "not integration"
  • uv run --group docs sphinx-build -b html docs docs/_build/html
  • uv run pytest -m integration
  • git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --cached --check

@wilsonfreitas wilsonfreitas merged commit 4772565 into main Jun 14, 2026
9 checks passed
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.

Permitir configurar timeout por chamada nas APIs HTTP

1 participant