Commit d958005
docs+tests(waterdata): apply /simplify sweep — close stale refs and consolidate sleep helpers
Doc-vs-code drift left by the recent inlining + the 01c734b transport-error fix:
- multi_value_chunked Raises (chunking.py:1716): now lists transport
errors alongside 429/5xx — the surface the 01c734b sweep missed.
- _combine_raw docstring (chunking.py:1444): "record" → "the track
closure in _run" since record() was inlined in c63da1b.
- track closure docstring (chunking.py:1627): "+ record +" → "+
result-store +" for the same reason.
- _aiozero test helper docstring: tightened to "asyncio.sleep (via the
chunking module's binding)" — chunking.asyncio IS the asyncio module.
- Test section banner: "drivers" (plural) → "driver" (only one
remaining after the async-only collapse).
Simplifications:
- Drop the redundant 3-line comment above the inlined
`return self.finalize(*self._combine_raw())` — partial_frame's
docstring and the class Attributes already say the same thing twice.
- Test sleep-faker variants consolidated: replaced 3 inline
`async def _noslept(_d): return None` blocks with the existing
module-level `_aiozero`; replaced 2 inline `_record` closures with a
new module-level `_recording_sleep(slept)` factory.
Net −8 lines. 296 offline tests pass; ruff clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c63da1b commit d958005
2 files changed
Lines changed: 28 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1448 | 1449 | | |
1449 | 1450 | | |
1450 | 1451 | | |
| |||
1624 | 1625 | | |
1625 | 1626 | | |
1626 | 1627 | | |
1627 | | - | |
| 1628 | + | |
1628 | 1629 | | |
1629 | 1630 | | |
1630 | 1631 | | |
| |||
1667 | 1668 | | |
1668 | 1669 | | |
1669 | 1670 | | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | 1671 | | |
1674 | 1672 | | |
1675 | 1673 | | |
| |||
1713 | 1711 | | |
1714 | 1712 | | |
1715 | 1713 | | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1719 | 1717 | | |
1720 | 1718 | | |
1721 | 1719 | | |
| |||
| 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 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
1487 | 1498 | | |
1488 | 1499 | | |
1489 | 1500 | | |
1490 | | - | |
| 1501 | + | |
1491 | 1502 | | |
1492 | 1503 | | |
1493 | 1504 | | |
| |||
1631 | 1642 | | |
1632 | 1643 | | |
1633 | 1644 | | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
| 1645 | + | |
1639 | 1646 | | |
1640 | 1647 | | |
1641 | 1648 | | |
| |||
1650 | 1657 | | |
1651 | 1658 | | |
1652 | 1659 | | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1660 | + | |
1658 | 1661 | | |
1659 | 1662 | | |
1660 | 1663 | | |
| |||
1670 | 1673 | | |
1671 | 1674 | | |
1672 | 1675 | | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
| 1676 | + | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
| 1737 | + | |
1741 | 1738 | | |
1742 | 1739 | | |
1743 | 1740 | | |
| |||
1756 | 1753 | | |
1757 | 1754 | | |
1758 | 1755 | | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
| 1756 | + | |
1763 | 1757 | | |
1764 | 1758 | | |
1765 | 1759 | | |
| |||
0 commit comments