Commit c63da1b
refactor(waterdata): address PR 285 review (compact retry doc, drop _ASLEEP, inline trivial methods)
- Module docstring (L29-31): apply suggested wording — drop the
"isn't slept off inline" / "doesn't block the call" rationale; the
one-line escalation statement is enough.
- Drop the ``_ASLEEP = asyncio.sleep`` module-level test hook in favor
of a direct ``await asyncio.sleep(delay)``; tests now patch
``chunking.asyncio.sleep`` (still scoped to the chunking module's
asyncio binding, no extra indirection in production).
- Inline ``ChunkedCall.record(index, pair)`` into the one call site
in ``_run.track``; the "single writer of ``_chunks``" invariant moves
to a comment on ``self._chunks`` initialization.
- Inline ``ChunkedCall.combined()`` into ``_run``'s return; the
``partial_*`` bypass note moves to a comment at the return site,
where it's more useful than buried in a removed helper's docstring.
No behavior change; 296 offline tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad1208e commit c63da1b
2 files changed
Lines changed: 21 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
1128 | 1126 | | |
1129 | 1127 | | |
1130 | 1128 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | 1129 | | |
1138 | 1130 | | |
1139 | 1131 | | |
| |||
1206 | 1198 | | |
1207 | 1199 | | |
1208 | 1200 | | |
1209 | | - | |
| 1201 | + | |
1210 | 1202 | | |
1211 | 1203 | | |
1212 | 1204 | | |
| |||
1401 | 1393 | | |
1402 | 1394 | | |
1403 | 1395 | | |
| 1396 | + | |
| 1397 | + | |
1404 | 1398 | | |
1405 | 1399 | | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | 1400 | | |
1425 | 1401 | | |
1426 | 1402 | | |
| |||
1483 | 1459 | | |
1484 | 1460 | | |
1485 | 1461 | | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | 1462 | | |
1506 | 1463 | | |
1507 | 1464 | | |
| |||
1669 | 1626 | | |
1670 | 1627 | | |
1671 | 1628 | | |
1672 | | - | |
| 1629 | + | |
1673 | 1630 | | |
1674 | 1631 | | |
1675 | 1632 | | |
| |||
1710 | 1667 | | |
1711 | 1668 | | |
1712 | 1669 | | |
1713 | | - | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1714 | 1674 | | |
1715 | 1675 | | |
1716 | 1676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | | - | |
| 1492 | + | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
| |||
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
1604 | | - | |
| 1604 | + | |
1605 | 1605 | | |
1606 | 1606 | | |
1607 | 1607 | | |
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
| 1619 | + | |
1620 | 1620 | | |
1621 | 1621 | | |
1622 | 1622 | | |
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
| 1638 | + | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
1657 | | - | |
| 1657 | + | |
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | | - | |
| 1676 | + | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | | - | |
| 1696 | + | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | | - | |
| 1716 | + | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| |||
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | | - | |
| 1740 | + | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
| 1762 | + | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
| |||
0 commit comments