$ the-wire ยท showcase
SQLModel 0.0.46 ships timedelta fix for UTC datetimes
By RepoJournal ยท Filed ยท About FastAPI & Pydantic ยท Composed from the cited sources ยท methodology
SQLModel cut 0.0.46 with a fix for timedelta arithmetic against timezone-aware datetime fields, while Pydantic hardened ByteSize validation against integer overflow.
๐ Release version 0.0.46 (#2102) tiangolo/sqlmodel
by pr-submit[bot]
Release 0.0.46 packages the timedelta arithmetic fix, so models that add or subtract durations from aware datetime columns no longer compute against the wrong offset. Bump sqlmodel to pick it up.
Catch `OverflowError` during `ByteSize` validation (#13850) pydantic/pydantic
Pydantic now catches OverflowError raised during ByteSize validation, so an out-of-range byte string fails as a normal validation error instead of escaping as an uncaught exception. This lands on the Pydantic side; SQLModel's release is the version that carries the datetime work.
๐ Fix timedelta arithmetic with UTC datetime fields tiangolo/sqlmodel
The underlying change fixes timedelta arithmetic with UTC datetime fields, where adding or subtracting a delta produced incorrect results for timezone-aware values. Reviewed manually, with the PR noting it was written with Codex using gpt-6-astra.
Catch `OverflowError` during `ByteSize` validation pydantic/pydantic
The same ByteSize overflow guard, tracked as a Pydantic pull request against the validation path.
Action items
- โ Upgrade sqlmodel to 0.0.46 to pick up the timedelta arithmetic fix for UTC datetime fields tiangolo/sqlmodel [plan]