Commit 3316f7a
Address Copilot review on PR #247: tighten _format_api_dates docstring
- Widen the `datetime_input` annotation to `str | list[str | None] | None`
to match the actual contract — range endpoints may be `None`/`NaN`/empty
for half-bounded ranges.
- Rewrite the Notes bullets to spell out the per-element NA behavior
(single value -> None; range endpoint -> ".."; range is None only when
every element is NA or a non-NA element fails to parse).
- Drop the stale "replaces 'nan' with '..' in the output" bullet — the
implementation no longer string-replaces, it handles NA per-element.
- Document `PT...` time-only durations alongside `P7D` in the parameter
description.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 74625a0 commit 3316f7a
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
220 | | - | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
0 commit comments