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
Five fixes from the PR review:
- ``_plan_chunks`` checks ``total > max_chunks`` inside the halving
loop now: each split only grows the cartesian product, so once the
cap is crossed it can never come back under. Continuing to halve
the URL just wastes work.
- ``_plan_chunks``'s ``max_chunks`` default becomes ``int | None =
None`` and resolves to ``_DEFAULT_MAX_CHUNKS`` at call time. The
previous ``max_chunks: int = _DEFAULT_MAX_CHUNKS`` bound the constant
at module-import time, defeating the documented monkeypatch path
for direct callers (the wrapper already resolved lazily, but
``_plan_chunks`` direct calls saw the import-time value).
- ``_chunk_bytes`` docstring no longer claims the URL-encoded comma
overhead is "constant per chunk" — it scales with ``2 * (len -
1)``. The function still uses raw ``,`` length because the planner
only needs a monotone comparator across dims, but the wording was
wrong.
- ``QuotaExhausted.partial_response`` docstring now says "last
completed sub-request" to match the bug_001 fix in
``_combine_chunk_responses``.
- Module-level docstring drops the chained-query example (duplicated
from ``get_daily``'s docstring) and points readers there.
No behavior change for existing callers. 209 waterdata tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments