Commit 22512ba
fix: set graceperiod to a real timedelta in upstream sync test
The string '2d' couldn't be parsed by Timedelta.from_json and was
silently coerced to None, triggering ModifyingEnforceTypeWarning
(the assertion happened to pass because enforce_type is disabled
for this codepath and the raw value was preserved). Using a real
timedelta avoids the warning and makes the field type explicit.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 877eae4 commit 22512ba
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
0 commit comments