chore(deps): update dependency pydantic to v2.6.0 #524
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.5.3
->==2.6.0
Release Notes
pydantic/pydantic (pydantic)
v2.6.0
Compare Source
GitHub release
The code released in v2.6.0 is practically identical to that of v2.6.0b1.
What's Changed
Packaging
email-validator
version >= 2.0 by @commonism in #6033pydantic-extra-types==2.4.1
by @yezz123 in #8478pyright==1.1.345
by @Viicos in #8453New Features
NatsDsn
by @ekeew in #6874ConfigDict.ser_json_inf_nan
by @davidhewitt in #8159types.OnErrorOmit
by @adriangb in #8222AliasGenerator
usage by @sydney-runkle in #8282yyyy-MM-DD
datetime parsing by @sydney-runkle in #8404ByteSize
class #8415 by @luca-matei in #8507ByteSize
by @geospackle in #8537eval_type_backport
to handle union operator and builtin generic subscripting in older Pythons by @alexmojaki in #8209dataclass
fieldsinit
by @dmontagu in #8552ValidationError
by @davidhewitt in pydantic/pydantic-core#1119Changes
self
inBaseModel
constructor, so no field name can ever conflict with it by @ariebovenberg in #8072@validate_call
return a function instead of a custom descriptor - fixes binding issue with inheritance and addsself/cls
argument to validation errors by @alexmojaki in #8268BaseModel
docstring from JSON schema description by @sydney-runkle in #8352classproperty
decorator formodel_computed_fields
by @Jocelyn-Gas in #8437Performance
int
extraction by @samuelcolvin in pydantic/pydantic-core#1155dataclass
serialization speedups by @samuelcolvin in pydantic/pydantic-core#1162HashMap
creation when looking up small JSON objects inLazyIndexMaps
by @samuelcolvin in pydantic/jiter#55Peak
with more efficientPeek
by @davidhewitt in pydantic/jiter#48Fixes
getattr
warning in deprecatedBaseConfig
by @tlambert03 in #7183model_fields
, not whole__dict__
by @alexmojaki in #7786mypy
plugin by @dmontagu in #7411mypy
error on untypedClassVar
by @vincent-hachin-wmx in #8138BaseModel.__eq__
instead of whole__dict__
by @QuentinSoubeyranAqemia in #7825strict
docstring inmodel_validate
method. by @LukeTonin in #8223computed_field
by @Viicos in #8227validate_call
decorator to be dynamically assigned to a class method by @jusexton in #8249unittest.mock
deprecation warnings by @ibleedicare in #8262JsonValue
contains subclassed primitive values by @jusexton in #8286mypy
error on free before validator (classmethod) by @sydney-runkle in #8285to_snake
conversion by @jevins09 in #8316ModelMetaclass.__prepare__
by @slanzmich in #8305config
specification when initializing aTypeAdapter
when the annotated type has config already by @sydney-runkle in #8365alias
indataclass
signature by @NeevCohen in #8387Field(...)
in a forward ref by @dmontagu in #8494__dict__
withmodel_construct
call by @sydney-runkle in #8500path_type
creation when globals does not contain__name__
by @hramezani in #8470from __future__ import annotations
by @sydney-runkle in #8513@deprecated
by @Viicos in #8294model_construct
call by @sydney-runkle in #8525TypeAliasType
for types with refs by @dmontagu in #8526pydantic.Field(repr=False)
in dataclasses by @tigeryy2 in #8511dataclass_transform
behavior forRootModel
by @Viicos in #8163exclude_none
for json serialization ofcomputed_field
s by @sydney-runkle in pydantic/pydantic-core#1098New Contributors
pydantic
pydantic-core
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.