Pydantic-core

Latest version: v2.27.1

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 21

2.27.1

What's Changed

* Simplify shared union serializer logic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1538
* Tidy up some uses of `Bound<'_, PyString>::to_str` by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1544
* Fix serialization inference for `complex` types in `python` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1549
* Bump to PyO3 v0.22.6 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1550
* Fix performance regression for JSON tagged union by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1552

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.27.0...v2.27.1

2.27.0

What's Changed
* Remove `Url` and `MultiHostUrl` docstrings, we moved them to pydantic by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1531
* Fix panic in `validate_assignment` when field has gone missing by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1532
* Fix for `Union` serializer: do not raise warnings in nested unions by lukapeschke in https://github.com/pydantic/pydantic-core/pull/1513
* Fix `_IncEx` type alias to be compatible with mypy by Viicos in https://github.com/pydantic/pydantic-core/pull/1537
* More union serialization tidying by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1536
* Fix `wrap` serializer breaking union serialization in presence of extra fields by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1530
* Support `trailing-strings` with `allow_partial` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1539

New Contributors
* lukapeschke made their first contribution in https://github.com/pydantic/pydantic-core/pull/1513

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.26.0...v2.27.0

2.26.0

What's Changed

Fixes
* Revert changes to url schemas that support `cls`, the 2x validation isn't worth it (and is breaking) by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1514
* Fix when `coerce_numbers_to_str` enabled and string has invalid unicode character by andrey-berenda in https://github.com/pydantic/pydantic-core/pull/1515
* Fix serializing `complex` values in enums by changhc in https://github.com/pydantic/pydantic-core/pull/1524

Packaging
* Bump `serde` from 1.0.213 to 1.0.214 by dependabot in https://github.com/pydantic/pydantic-core/pull/1519
* Bump `regex` from 1.11.0 to 1.11.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1520
* Bump `jiter` from 0.6.1 to 0.7.0 by dependabot in https://github.com/pydantic/pydantic-core/pull/1521
* bump `speedate` to 0.15 by davidhewitt in https://github.com/pydantic/pydantic-core/pull/1526

New Features
* Add `allow_partial` by samuelcolvin in https://github.com/pydantic/pydantic-core/pull/1512

New Contributors
* andrey-berenda made their first contribution in https://github.com/pydantic/pydantic-core/pull/1515

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.25.1...v2.26.0

2.25.1

What's Changed

* Bump jiter from 0.5.0 to 0.6.1 by dependabot in https://github.com/pydantic/pydantic-core/pull/1498
* Update Pyodide to v0.26.3 by riyavsinha in https://github.com/pydantic/pydantic-core/pull/1507
* Allow subclassing `ValidationError` and `PydanticCustomError` by Youssefares in https://github.com/pydantic/pydantic-core/pull/1413
* Revert "feat: add 'millisecond' option to `ser_json_timedelta`" by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1503
* Support subclass inits for `Url` and `MultiHostUrl` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1508

New Contributors
* Youssefares made their first contribution in https://github.com/pydantic/pydantic-core/pull/1413
* riyavsinha made their first contribution in https://github.com/pydantic/pydantic-core/pull/1507

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.25.0...v2.25.1

2.25.0

What's Changed
* Properly enforce `host_required` for URLs by Viicos in https://github.com/pydantic/pydantic-core/pull/1488
* Support revalidation of parametrized generics by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1489
* Support default factories taking validated data as an argument by Viicos in https://github.com/pydantic/pydantic-core/pull/1491

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.24.2...v2.25.0

2.24.2

What's Changed
* Add `serialization` key to `InvalidSchema` by sydney-runkle in https://github.com/pydantic/pydantic-core/pull/1482

**Full Changelog**: https://github.com/pydantic/pydantic-core/compare/v2.24.1...v2.24.2

Page 1 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.