fix(deps): update dependency pydantic to v2.8.0 #3824
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.7.4
->2.8.0
Release Notes
pydantic/pydantic (pydantic)
v2.8.0
Compare Source
GitHub release
The code released in v2.8.0 is functionally identical to that of v2.8.0b1.
What's Changed
Packaging
v1.1.367
and add type checking tests for pipeline API by @adriangb in #9674pydantic.v1
stub tov1.10.17
by @sydney-runkle in #9707v2.8.0b1
by @sydney-runkle in #9741pydantic-core
tov2.20.0
by @sydney-runkle in #9745pdm
version used forpdm.lock
to v2.16.1 by @sydney-runkle in #9761ruff
v0.4.8
by @Viicos in #9585New Features
defer_build
forTypeAdapter
by @MarkusSintonen in #8939deprecated
field in json schema by @NeevCohen in #9298fail_fast
feature by @uriyyo in #9708ser_json_inf_nan='strings'
mode to produce valid JSON by @josh-newman in pydantic/pydantic-core#1307Changes
Annotated
field by @nix010 in #9170__validators__
values increate_model
by @sydney-runkle in #9697smart
union matching logic by @sydney-runkle in pydantic/pydantic-core#1322You can read more about our
smart
union matching logic here. In some cases, if the old behavioris desired, you can switch to
left-to-right
mode and change the order of yourUnion
members.Performance
Internal Improvements
_display_error_loc()
by 25% inpydantic/v1/error_wrappers.py
by @misrasaurabh1 in #9653_get_all_json_refs()
by 34% inpydantic/json_schema.py
by @misrasaurabh1 in #9650is_pydantic_dataclass()
by 41% inpydantic/dataclasses.py
by @misrasaurabh1 in #9652to_snake()
by 27% inpydantic/alias_generators.py
by @misrasaurabh1 in #9747unwrap_wrapped_function()
by 93% inpydantic/_internal/_decorators.py
by @misrasaurabh1 in #9727Fixes
__spec__.parent
with__package__
by @hramezani in #9331Sequence
type by @anesmemisevic in #9303_frame_depth
by @Viicos in #9353ImportString
json schema compatible by @amitschang in #9344PrivateAttr
) from__init__
signature in type checkers by @idan22moral in #9293TypeVar
defaults robust to the CPythonPEP-696
implementation by @AlexWaygood in #9426PlainSerializer
with builtin types by @Viicos in #9450strict
specification forStringConstraint(strict=False)
by @vbmendes in #9476Self
where possible by @Viicos in #9479RootModel.model_construct
signature in themypy
plugin by @Viicos in #9480validation_context
by @OhioDschungel6 in #9508dump_json
/dump_python
by @alexcouper in #9495Field()
constructor by @bjmc in #9484TypeAdapter
by @Viicos in #9570__setstate__
of BaseModel by @anhpham1509 in #9584PEP 746
by @adriangb in #9587TypeVar
fields by @dmontagu in #9606regex
flags in validation and json schema by @sydney-runkle in #9591IpvAnyAddress
by @sydney-runkle in #9640__pydantic_extra__
by @dmontagu in #9659Optional[Decimal]
by @lazyhope in #9754validate_call
type params fix by @sydney-runkle in #9760re.Pattern
object in regex patterns to allow for regex flags by @sydney-runkle in pydantic/pydantic-core#1318New Contributors
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.