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
fix(retry): honor Retry-After: 0 end-to-end through transport
Per second-pass bot review on #112: the prior commit kept Retry-After: 0
on the error object, but transport's "if error.retry_after:" check
dropped 0 as falsy and fell through to backoff. Switched to
"is not None" in both sync and async transport. Added regression
tests that monkeypatch time.sleep / asyncio.sleep and assert the
delay is exactly 0.0 (not the backoff fallback).
Also addressed:
- config._validate_url docstring trimmed to one line (CLAUDE.md).
- Called via KalshiConfig._validate_url(...) rather than self.
(staticmethod-through-self hides that no instance state is used).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments