v2.17.0
What's Changed
Packaging
- Bump
smallvecfrom 1.11.2 to 1.13.1 by @dependabot in #1181 - Bump
regexfrom 1.10.2 to 1.10.3 by @dependabot in #1180 - Bump
uuidfrom 1.6.1 to 1.7.0 by @dependabot in #1179 - Bump
serdefrom 1.0.195 to 1.0.196 by @dependabot in #1177 - Bump
serde_jsonfrom 1.0.109 to 1.0.114 by @dependabot in #1211 - Bump
ahashfrom 0.8.7 to 0.8.10 by @dependabot in #1210 - Bump
strum_macrosfrom 0.25.3 to 0.26.1 by @dependabot in #1208 - update to
PyO30.21 beta by @davidhewitt in #1222 - Update
pyodideto 0.25.0 by @samdobson in #1199 - Really drop python<=3.7 support by @kloczek in #1232
- Uprev
speedateby @sydney-runkle in #1244
Fixes
- Add benchmarks for serializing model with complete schema by @alexmojaki in #1189
- Prevent panicking when
__dict__changes during iteration by @alexmojaki in #1196 - Fix
TzInfoequality check based on offset by @13sin in #1197 - Fix stack overflow due to recursion in some recursive serializer schemas. by @dmontagu in #1198
- Use PEP570 syntax by @Viicos in #1216
- Fix parsing
BigIntfromstrby @sydney-runkle in #1204 - Use new typing syntax for
_pydantic_core.pyiby @Viicos in #1217 - separate
Inputtrait'aand'pylifetimes by @davidhewitt in #1227 - Fix json serialization when
computed_fieldis excluded by @sydney-runkle in #1228 - Implement
Inputforstrby @davidhewitt in #1229 - Move list validation to produce an associated type by @davidhewitt in #1230
- Remove
with_new_extraby @davidhewitt in #1233 - Associated types for arguments in Input by @davidhewitt in #1234
- Associated types for dict in input by @davidhewitt in #1237
- Remaining associated types by @davidhewitt in #1238
- Refactor
Inputtrait to have singleas_pythoncast for python inputs by @davidhewitt in #1241 - Allow case where
__pydantic_extra__isNone, even ifextra='allow'by @sydney-runkle in #1236
Performance
- Rust enums validator by @samuelcolvin in #1235
- Support json cow of jiter 0.1.0 by @davidhewitt in #1231
New Features
- Add ability to pass
contextto serialization by @ornariece in #1215 - Add
serialize_as_anyruntime flag support by @sydney-runkle in #1194
Changes
- Trimming str before parsing to int and float by @hungtsetse in #1203
speedatechange: Serialize duration to hour minute second, instead of just seconds by @kakilangit in pydantic/speedate#50
New Contributors
- @alexmojaki made their first contribution in #1189
- @samdobson made their first contribution in #1199
- @13sin made their first contribution in #1197
- @hungtsetse made their first contribution in #1203
- @stonebig made their first contribution in #1214
- @ornariece made their first contribution in #1215
- @bmwiedemann made their first contribution in #1221
- @kloczek made their first contribution in #1232
Full Changelog: v2.16.3...v2.17.0