[client] Fix docstring type drift: site_id documented (str) but typed int | str #188
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several docstrings document parameter types that no longer match the signatures — the signatures accept
int | str, the docstrings still say(str):site_id (str):_aggregations.py:64, 128, 301, 353;_connected_objects.py:87;_devices.py:14;_grid.py:14;_sites.py:83device_id (str)inget_device_ts_time_ago(_aggregations.py:183)time_ago_value (str)inget_device_ts_time_ago(_aggregations.py:200) — typedint | strSame root cause as the docstring-dedup issue: six near-verbatim copies that drift independently.
Fix: sweep the package for docstring/signature mismatches and align them; consider folding into the dedup work to avoid editing the same blocks twice.
Done when: docstrings match signatures everywhere in
comwatt_client/,pytest -qgreen.