Bump pydantic from 2.7.4 to 2.8.0
Bumps pydantic from 2.7.4 to 2.8.0.
Release notes
Sourced from pydantic's releases.
v2.8.0 (2024-07-01)
The code released in
v2.8.0
is functionally identical to that ofv2.8.0b1
.Check out our blog post to learn more about the release highlights!
What's Changed
Packaging
- Update citation version automatically with new releases by
@sydney-runkle
in #9673- Bump pyright to
v1.1.367
and add type checking tests for pipeline API by@adriangb
in #9674- Update
pydantic.v1
stub tov1.10.17
by@sydney-runkle
in #9707- General package updates to prep for
v2.8.0b1
by@sydney-runkle
in #9741- Bump
pydantic-core
tov2.20.0
by@sydney-runkle
in #9745- Add support for Python 3.13 by
@sydney-runkle
in #9743- Update
pdm
version used forpdm.lock
tov2.16.1
by@sydney-runkle
in #9761- Update to
ruff
v0.4.8
by@Viicos
in #9585New Features
- Experimental: support
defer_build
forTypeAdapter
by@MarkusSintonen
in #8939- Implement
deprecated
field in json schema by@NeevCohen
in #9298- Experimental: Add pipeline API by
@adriangb
in #9459- Add support for programmatic title generation by
@NeevCohen
in #9183- Implement
fail_fast
feature by@uriyyo
in #9708- Add
ser_json_inf_nan='strings'
mode to produce valid JSON by@josh-newman
in pydantic/pydantic-core#1307Changes
- Add warning when "alias" is set in ignored
Annotated
field by@nix010
in #9170- Support serialization of some serializable defaults in JSON schema by
@sydney-runkle
in #9624- Relax type specification for
__validators__
values increate_model
by@sydney-runkle
in #9697- Breaking Change: Improve
smart
union matching logic by@sydney-runkle
in pydantic/pydantic-core#1322 You can read more about oursmart
union matching logic here. In some cases, if the old behavior is desired, you can switch toleft-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
⚡ ️ Speed up_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by@misrasaurabh1
in #9653⚡ ️ Speed up_get_all_json_refs()
by 34% inpydantic/json_schema.py
by@misrasaurabh1
in #9650⚡ ️ Speed upis_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by@misrasaurabh1
in #9652⚡ ️ Speed upto_snake()
by 27% inpydantic/alias_generators.py
by@misrasaurabh1
in #9747⚡ ️ Speed upunwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by@misrasaurabh1
in #9727Fixes
- Replace
__spec__.parent
with__package__
by@hramezani
in #9331- Fix Outputted Model JSON Schema for
Sequence
type by@anesmemisevic
in #9303
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.8.0 (2024-07-01)
The code released in v2.8.0 is functionally identical to that of v2.8.0b1.
What's Changed
Packaging
- Update citation version automatically with new releases by
@sydney-runkle
in #9673- Bump pyright to
v1.1.367
and add type checking tests for pipeline API by@adriangb
in #9674- Update
pydantic.v1
stub tov1.10.17
by@sydney-runkle
in #9707- General package updates to prep for
v2.8.0b1
by@sydney-runkle
in #9741- Bump
pydantic-core
tov2.20.0
by@sydney-runkle
in #9745- Add support for Python 3.13 by
@sydney-runkle
in #9743- Update
pdm
version used forpdm.lock
to v2.16.1 by@sydney-runkle
in #9761- Update to
ruff
v0.4.8
by@Viicos
in #9585New Features
- Experimental: support
defer_build
forTypeAdapter
by@MarkusSintonen
in #8939- Implement
deprecated
field in json schema by@NeevCohen
in #9298- Experimental: Add pipeline API by
@adriangb
in #9459- Add support for programmatic title generation by
@NeevCohen
in #9183- Implement
fail_fast
feature by@uriyyo
in #9708- Add
ser_json_inf_nan='strings'
mode to produce valid JSON by@josh-newman
in pydantic/pydantic-core#1307Changes
- Add warning when "alias" is set in ignored
Annotated
field by@nix010
in #9170- Support serialization of some serializable defaults in JSON schema by
@sydney-runkle
in #9624- Relax type specification for
__validators__
values increate_model
by@sydney-runkle
in #9697- Breaking Change: Improve
smart
union matching logic by@sydney-runkle
in pydantic/pydantic-core#1322 You can read more about oursmart
union matching logic here. In some cases, if the old behavior is desired, you can switch toleft-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
⚡ ️ Speed up_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by@misrasaurabh1
in #9653⚡ ️ Speed up_get_all_json_refs()
by 34% inpydantic/json_schema.py
by@misrasaurabh1
in #9650⚡ ️ Speed upis_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by@misrasaurabh1
in #9652⚡ ️ Speed upto_snake()
by 27% inpydantic/alias_generators.py
by@misrasaurabh1
in #9747⚡ ️ Speed upunwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by@misrasaurabh1
in #9727Fixes
- Replace
__spec__.parent
with__package__
by@hramezani
in #9331
... (truncated)
Commits
-
1609e2a
Prep for v2.8 release (#9806) -
411dfd8
👥 Update Pydantic People (#9803) -
e280663
Add Nested Model Field Validation Examples to Docs (#9735) -
a002e69
Fix Python version check for_eval_type
(#9781) -
e108fd1
Docs updates to prep for v2.8 (#9778) -
011d8b6
Fix documentation formatting (#9779) -
738b5d7
Add note about Pipeline API recommended usage (#9777) -
8a0f335
Document and testser_json_inf_nan='strings'
variant (#9771) -
764e148
Preparing for the v2.8.0b1 release! (#9776) -
fcd2010
validate_call
type params fix (#9760) - Additional commits viewable in compare view