Commit a9cf2d7
Tighten _request_bytes: type the param and drop redundant str() wrap
- Annotate ``req`` as ``requests.PreparedRequest`` (the only caller flow
is ``build_request(...).prepare()``; ``requests`` is already imported).
- ``_cql2_param`` returns ``str``, which ``requests.Request(data=...)``
carries through to ``req.body``. The hot path on POST routes was
``str(body).encode("utf-8")``; ``str(<str>)`` is a no-op, so drop it
and let ``body.encode("utf-8")`` allocate once.
- Trim docstring: replaces the rotting "PR 233" / "currently only
monitoring-locations" anchors with a behavioral description that
doesn't rely on which routes happen to be POST today.
No behavior change. 30 chunker unit tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2941328 commit a9cf2d7
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
231 | 227 | | |
232 | | - | |
| 228 | + | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
0 commit comments