Commit ff41a18
review(#135 pass 2): CHANGELOG + async docstring + trim unbounded test
Per second-pass bot review on PR #135:
- CHANGELOG.md [Unreleased]: added Added entry for max_pages kwarg
+ RateLimit export, and Changed entry calling out that *_all() is
now unbounded by default (was silently capped at 1000 pages).
- _base.py async _list_all docstring: restored the "Raises KalshiError
on repeated cursor; see sync docstring." note that got trimmed in
the previous refactor.
- TestMaxPagesNoneIsUnbounded: 1100 → 1010. Still exceeds the old
1000-cap by enough to prove unboundedness; 90% fewer mock requests.
Skipped:
- nonlocal-vs-dict counter style nit — bot called this take-or-leave;
the existing pattern is consistent across the test file.
uv run ruff check . clean. uv run pytest
tests/test_base_helpers.py::TestMaxPagesNoneIsUnbounded passes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d4b6d0c commit ff41a18
3 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
7 | 25 | | |
8 | 26 | | |
9 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
429 | 431 | | |
430 | | - | |
| 432 | + | |
431 | 433 | | |
432 | 434 | | |
433 | 435 | | |
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
438 | | - | |
| 440 | + | |
0 commit comments