Bump pydantic from 2.8.2 to 2.10.1
Bumps pydantic from 2.8.2 to 2.10.1.
Release notes
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
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- Adding
__replace__
protocol for Python 3.13+ support by@sydney-runkle
in #10596- Expose public
sort
method for JSON schema generation by@sydney-runkle
in #10595- Add runtime validation of
@validate_call
callable argument by@kc0506
in #10627- Add
experimental_allow_partial
support by@samuelcolvin
in #10748- Support default factories taking validated data as an argument by
@Viicos
in #10678- Allow subclassing
ValidationError
andPydanticCustomError
by@Youssefares
in pydantic/pydantic-core#1413- Add
trailing-strings
support toexperimental_allow_partial
by@sydney-runkle
in #10825
... (truncated)
Changelog
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)
Commits
-
17e60fa
spacing -
369b355
remove typo -
4c75404
Prepare for v2.10.1 release (#10939) -
e0fc82f
Bumppydantic-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 theglobals
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 withmodel_fields
andmodel_computed_fields
(#10911) - Additional commits viewable in compare view