Published September 25, 2023
| Version v2.4.0
Software
Open
pydantic/pydantic: v2.4.0 2023-09-25
Authors/Creators
- Samuel Colvin1
- David Montague2
- Adrian Garcia Badaracco
- Hasan Ramezani1
- Eric Jolibois3
- Marcelo Trylesinski4
- Terrence Dorsey
- pyup.io bot5
- Serge Matveenko2
- David Hewitt1
- Arseny Boykov6
- Sebastián Ramírez
- Nikita Grishko7
- Koudai Aono8
- Yurii Karabas9
- Vitaly Samigullin
- Stephen Brown II10
- Viicos
- Amin Alaee
- Davis Kirkendall11
- layday
- sydney-runkle
- Yasser Tahiri12
- Daniel Smith13
- Marc Mueller
- Nuno André14
- Hmvp
- John Carter
- 1. @pydantic
- 2. Pydantic
- 3. @ToucanToco
- 4. @encode @pydantic
- 5. @pyupio
- 6. Boloo Team
- 7. @PandaDoc
- 8. Tractable @tractableai
- 9. @NewfirePartners
- 10. JumpCloud
- 11. ONIQ GmbH
- 12. Yezz LLC. | KnotAPI
- 13. Flagship Pioneering
- 14. @forensic-security
Description
What's Changed
Packaging
- Update pydantic-core to 2.10.0 by @samuelcolvin in #7542
- Add
Base64Urltypes by @dmontagu in #7286 - Implement optional
numbertostrcoercion by @lig in #7508 - Allow access to
field_nameanddatain all validators if there is data and a field name by @samuelcolvin in #7542 - Add
BaseModel.model_validate_stringsandTypeAdapter.validate_stringsby @hramezani in #7552 - Add Pydantic
pluginsexperimental implementation by @lig @samuelcolvin and @Kludex in #6820
- Do not override
model_post_initin subclass with private attrs by @Viicos in #7302 - Make fields with defaults not required in the serialization schema by default by @dmontagu in #7275
- Mark
Extraas deprecated by @disrupted in #7299 - Make
EncodedStra dataclass by @Kludex in #7396 - Move
annotated_handlersto be public by @samuelcolvin in #7569
- Simplify flattening and inlining of
CoreSchemaby @adriangb in #7523 - Remove unused copies in
CoreSchemawalking by @adriangb in #7528 - Add caches for collecting definitions and invalid schemas from a CoreSchema by @adriangb in #7527
- Eagerly resolve discriminated unions and cache cases where we can't by @adriangb in #7529
- Replace
dict.getanddict.setdefaultwith more verbose versions inCoreSchemabuilding hot paths by @adriangb in #7536 - Cache invalid
CoreSchemadiscovery by @adriangb in #7535 - Allow disabling
CoreSchemavalidation for faster startup times by @adriangb in #7565
- Fix config detection for
TypedDictfrom grandparent classes by @dmontagu in #7272 - Fix hash function generation for frozen models with unusual MRO by @dmontagu in #7274
- Make
strictconfig overridable in field for Path by @hramezani in #7281 - Use
ser_json_<timedelta|bytes>on default inGenerateJsonSchemaby @Kludex in #7269 - Adding a check that alias is validated as an identifier for Python by @andree0 in #7319
- Raise an error when computed field overrides field by @sydney-runkle in #7346
- Fix applying
SkipValidationto referenced schemas by @adriangb in #7381 - Enforce behavior of private attributes having double leading underscore by @lig in #7265
- Standardize
__get_pydantic_core_schema__signature by @hramezani in #7415 - Fix generic dataclass fields mutation bug (when using
TypeAdapter) by @sydney-runkle in #7435 - Fix
TypeErroronmodel_validatorinwrapmode by @pmmmwh in #7496 - Improve enum error message by @hramezani in #7506
- Make
reprwork for instances that failed initialization when handlingValidationErrors by @dmontagu in #7439 - Fixed a regular expression denial of service issue by limiting whitespaces by @prodigysml in #7360
- Fix handling of
UUIDvalues havingUUID.version=Noneby @lig in #7566 - Fix
__iter__returning privatecached_propertyinfo by @sydney-runkle in #7570 - Improvements to version info message by @samuelcolvin in #7594
- @15498th made their first contribution in #7238
- @GabrielCappelli made their first contribution in #7213
- @tobni made their first contribution in #7184
- @redruin1 made their first contribution in #7282
- @FacerAin made their first contribution in #7288
- @acdha made their first contribution in #7297
- @andree0 made their first contribution in #7319
- @gordonhart made their first contribution in #7375
- @pmmmwh made their first contribution in #7496
- @disrupted made their first contribution in #7299
- @prodigysml made their first contribution in #7360
Files
pydantic/pydantic-v2.4.0.zip
Files
(2.9 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:ae78b3cef9f398ea46af0b4c45ead535
|
2.9 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/pydantic/pydantic/tree/v2.4.0 (URL)