Sourced from pydantic's releases.
v2.10.1 2024-11-21
What's Changed
Packaging
- Bump
pydantic-core
version tov2.27.1
by@sydney-runkle
in #10938Fixes
- Use the correct frame when instantiating a parametrized
TypeAdapter
by@Viicos
in #10893- Relax check for validated data in
default_factory
utils by@sydney-runkle
in #10909- Fix type checking issue with
model_fields
andmodel_computed_fields
by@sydney-runkle
in #10911- Use the parent configuration during schema generation for stdlib
dataclass
es by@sydney-runkle
in #10928- Use the
globals
of the function when evaluating the return type of serializers andcomputed_field
s by@Viicos
in #10929- Fix URL constraint application by
@sydney-runkle
in #10922- Fix URL equality with different validation methods by
@sydney-runkle
in #10934- Fix JSON schema title when specified as
''
by@sydney-runkle
in #10936- Fix
python
mode serialization forcomplex
inference by@sydney-runkle
in pydantic-core#1549Full Changelog: https://github.com/pydantic/pydantic/compare/v2.10.0...v2.10.2
Sourced from pydantic's changelog.
v2.10.1 (2024-11-21)
What's Changed
Packaging
- Bump
pydantic-core
version tov2.27.1
by@sydney-runkle
in #10938Fixes
- Use the correct frame when instantiating a parametrized
TypeAdapter
by@Viicos
in #10893- Relax check for validated data in
default_factory
utils by@sydney-runkle
in #10909- Fix type checking issue with
model_fields
andmodel_computed_fields
by@sydney-runkle
in #10911- Use the parent configuration during schema generation for stdlib
dataclass
es by@sydney-runkle
in #10928- Use the
globals
of the function when evaluating the return type of serializers andcomputed_field
s by@Viicos
in #10929- Fix URL constraint application by
@sydney-runkle
in #10922- Fix URL equality with different validation methods by
@sydney-runkle
in #10934- Fix JSON schema title when specified as
''
by@sydney-runkle
in #10936- Fix
python
mode serialization forcomplex
inference by@sydney-runkle
in pydantic-core#1549New Contributors
v2.10.0 (2024-11-20)
The code released in v2.10.0 is practically identical to that of v2.10.0b2.
See the v2.10 release blog post for the highlights!
What's Changed
Packaging
- Bump
pydantic-core
tov2.27.0
by@sydney-runkle
in #10825- Replaced pdm with uv by
@frfahim
in #10727New Features
- Support
fractions.Fraction
by@sydney-runkle
in #10318- Support
Hashable
for json validation by@sydney-runkle
in #10324- Add a
SocketPath
type forlinux
systems by@theunkn0wn1
in #10378- Allow arbitrary refs in JSON schema
examples
by@sydney-runkle
in #10417- Support
defer_build
for Pydantic dataclasses by@Viicos
in #10313- Adding v1 / v2 incompatibility warning for nested v1 model by
@sydney-runkle
in #10431- Add support for unpacked
TypedDict
to type hint variadic keyword arguments with@validate_call
by@Viicos
in #10416- Support compiled patterns in
protected_namespaces
by@sydney-runkle
in #10522- Add support for
propertyNames
in JSON schema by@FlorianSW
in #10478
... (truncated)
17e60fa
spacing369b355
remove typo4c75404
Prepare for v2.10.1 release (#10939)e0fc82f
Bump pydantic-core
version to v2.27.1 (#10938)30b31da
Fix JSON schema title when specified as ''
(#10936)45bd7a7
Fix URL equality with different validation methods (#10934)6153054
Fix url constraint application (#10922)71168ba
Use the globals
of the function when evaluating the return
type of serializ...4def331
Use the parent configuration during schema generation for stdlib
dataclasses ...a2acc52
Fix type checking issue with model_fields
and
model_computed_fields
(#10911)