fix(deps): update dependency pydantic to ~=2.14.2 #39
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cswimr/tidegear!39
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/pydantic-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~=2.11.0→~=2.14.2Release Notes
pydantic/pydantic (pydantic)
v2.14.2: 2026-10-29Compare Source
v2.14.2 (2026-10-29)
This release addresses 2 security issues, https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25 and https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29.
Packaging
PyFrozenDictby @Viicos in #14003pydantic-corewheels for PyPy 8.0 (pp80ABI) by @Viicos in #14083Performance
Fixes
Make JSON validation by iteration consistent with Python approach by @davidhewitt in #13275.
JSON validation now handles field lookup and extra data the same way as Python validation. In particular, keys that only match an
unused alias or field name are now treated as extra data, instead of being silently dropped:
See the pull request for the full list of behavior changes.
This change addresses https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25.
Ignore extra data matching a field name in
TypedDictand dataclasses withextra=allowby @Viicos in #14090. Addresses https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29.Fix unpickling of generic classes defined in separate module by @Viicos in #13994
Support explicit
by_aliasoverridingvalidate_by_aliasin validation JSON schemas by @Viicos in #13997Fix mypy plugin crash on deferred empty model by @ilevkivskyi in #14027
Fix infinite recursion when validating an invalid default with
PydanticUseDefaultby @Viicos in #14028Implement recursion guard for
validate_strings()by @Viicos in #14029Support named tuples in
Sequenceserialization by @Viicos in #14033Take
preserve_empty_pathinto account in URL types equality by @Viicos in #14035Fix pickling of
PydanticCustomErrorandValidationErrors containing custom errors by @Viicos in #14051Do not extract attribute docstrings from nested classes and functions by @Viicos in #14052
Fix forward annotations evaluation and type variables substitution when rebuilding parametrized generic models by @Viicos in #14054
Fix
Selfresolution in parametrized generics by @Viicos in #14065Check mapping
max_lengthconstraint during validation by @Viicos in #14092Fix deep copy of self-referential models by @Viicos in #14116
Full Changelog: https://github.com/pydantic/pydantic/compare/v2.14.1...v2.14.2
v2.14.1Compare Source
GitHub release
The code released in v2.5.0 is functionally identical to that of v2.5.0b1.
What's Changed
Packaging
pyright==1.1.335by @Viicos in #8075New Features
ValidationErrorerrors by @adriangb in #7806__doc__argument increate_model()by @chris-spann in #7863regex_engineflag - meaning you can use with the Rust or Python regex libraries in constraints by @utkini in #7768ComputedFieldInfoby @alexmojaki in #7889ruffformatter by @Luca-Blight in #7930validation_error_causeto config by @zakstucke in #7626CallableDiscriminatorandTagby @dmontagu in #7983CallableDiscriminatorrenamed toDiscriminatorby @dmontagu in #8047examplesandjson_schema_extrato@computed_fieldby @alexmojaki in #8013JsonValuetype by @dmontagu in #7998stras argument toDiscriminatorby @dmontagu in #8047SchemaSerializer.__reduce__method to enable pickle serialization by @edoakes in pydantic/pydantic-core#1006Changes
ultra_strictwith new smart union implementation, the way unions are validated has changed significantly to improve performance and correctness, we have worked hard to absolutely minimise the number of cases where behaviour has changed, see the PR for details - by @davidhewitt in pydantic/pydantic-core#867extra='allow'by @sydney-runkle in #7683Enumtypes with no cases by @sydney-runkle in #7927GenericbeforeBaseModelby @alexmojaki in #7891Performance
jiterby @samuelcolvin in pydantic/pydantic-core#974__getattr__for all package imports, improve import time by @samuelcolvin in #7947Fixes
mypyissue with subclasses ofRootModelby @sydney-runkle in #7677FieldInfowhen a forward ref gets evaluated by @dmontagu in #7698SecretStrfrom JSON (regression in v2.4) by @sydney-runkle in #7729defer_buildbehavior withTypeAdapterby @sydney-runkle in #7736mypyversions by @dmontagu in #7742TypeVarhandling when default is not set by @pmmmwh in #7719strictonEnumtype fields by @sydney-runkle in #7761weakref.refinstead of subclassing to fixcloudpickleserialization by @edoakes in #7780model_post_initin subclasses by @alexmojaki in #7775json_schema_extraby @alexmojaki in #7803strictspecification forUUIDtypes by @sydney-runkle in #7865pydantic.Field(kw_only=True)with inherited dataclasses by @PrettyWood in #7827validate_calldecorator for methods in classes with__slots__by @sydney-runkle in #7883dataclasses.fielddefault by @hramezani in #7898importlib_metadataon python 3.7 by @sydney-runkle in #7904|operator (Union) in PydanticRecursiveRef by @alexmojaki in #7892display_as_typeforTypeAliasTypein python 3.12 by @dmontagu in #7929NotRequiredgenerics inTypedDictby @sydney-runkle in #7932TypeAliasTypespecifications produce different schema definitions by @alexdrydew in #7893PrivateAttris passed fromAnnotateddefault position by @tabassco in #8004classmethodinstead ofclassmethod[Any, Any, Any]by @Mr-Pepe in #7979Optionalfield withvalidate_defaultonly performing one field validation by @sydney-runkle in pydantic/pydantic-core#1002definition-refbug withDictkeys by @sydney-runkle in pydantic/pydantic-core#1014booltypes withcoerce_numbers_to_str=Trueby @sydney-runkle in pydantic/pydantic-core#1017NaNin float and decimal constraints by @davidhewitt in pydantic/pydantic-core#1037lax_strandlax_intsupport for enum values not inherited from str/int by @michaelhly in pydantic/pydantic-core#1015UnionofListtypes by @sydney-runkle in pydantic/pydantic-core#1039max_digitsanddecimalsto pass if normalized or non-normalized input is valid by @sydney-runkle in pydantic/pydantic-core#1049ValidationErrormessages by @Iipin in pydantic/pydantic-core#1050'-'asdatetimeinput by @davidhewitt in pydantic/speedate#52 & pydantic/pydantic-core#1060New Contributors
pydanticpydantic-corev2.14.0Compare Source
GitHub release
What's Changed
The highlights of the v2.14 release are available in the blog post.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.
This release drops support for Python 3.9 and adds support for Python 3.15.
New Features
multiple_ofconstraint infractionandtimedeltacore schemas by @Viicos in #13873__namespace__parameter tocreate_model()by @Viicos in #13895Changes
ordered-dictcore schema by @Viicos in #13796countercore schema by @Viicos in #13824model_configattribute by @Viicos in #13825NameEmailvalidation by @Viicos in #13897Fixes
string_sub_typeunused error code by @Viicos in #13821OverflowErrorduringByteSizevalidation by @Viicos in #13850multiple_ofconstraints to be positive by @Viicos in #13862TypeErrorgracefully during docstring extraction by @Viicos in #13874TypedDicts in JSON Schema by @Viicos in #13891ser_json_timedeltato all datetime types in serialization inference by @Viicos in #13892initandkw_only=FalsefromField()to stdlib dataclass fields by @Viicos in #13898ZoneInfovalidation by @Viicos in #13912Decimalvalidation by @Viicos in #13940Fractionvalidation by @Viicos in #13944New Contributors
v2.13.5: 2026-08-28Compare Source
v2.13.5 (2026-08-28)
What's Changed
Fixes
pydantic-corestruct fields by @Viicos in #13624pydantic-coreforGeneralFieldsSerializerby @Viicos in #13629v2.13.4Compare Source
GitHub release
What's Changed
Packaging
pydantic-corelinker flags on macOS by @washingtoneg and @Viicos in #13147Fixes
RootModelcore metadata by @Viicos in #13129v2.13.3Compare Source
GitHub release
What's Changed
Fixes
AttributeErrorsubclasses withfrom_attributesby @Viicos in #13096v2.13.2Compare Source
GitHub release
What's Changed
Fixes
ValidationInfo.field_namemissing withmodel_validate_json()by @Viicos in #13084v2.13.1Compare Source
GitHub release
What's Changed
Fixes
ValidationInfo.datamissing withmodel_validate_json()by @davidhewitt in #13079v2.13.0Compare Source
GitHub release
The highlights of the v2.13 release are available in the blog post.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.
This release contains the updated
pydantic.v1namespace, matching version 1.10.26 which includes support for Python 3.14.What's Changed
See the beta releases for all changes sinces 2.12.
New Features
Changes
Fixes
Anywhen synthesizing_build_sourcesforBaseSettings.__init__()signature in the mypy plugin by @Viicos in #13049extraconfiguration by @Viicos in #13062Packaging
New Contributors
v2.12.5Compare Source
GitHub release
This is the fifth 2.12 patch release, addressing an issue with the
MISSINGsentinel and providing several documentation improvements.The next 2.13 minor release will be published in a couple weeks, and will include a new polymorphic serialization feature addressing
the remaining unexpected changes to the serialize as any behavior.
model_construct()on a model withMISSINGas a default value by @ornariece in #12522.v2.12.4Compare Source
GitHub release
This is the fourth 2.12 patch release, fixing more regressions, and reverting a change in the
build()methodof the
AnyUrland Dsn types.This patch release also fixes an issue with the serialization of IP address types, when
serialize_as_anyis used. The next patch releasewill try to address the remaining issues with serialize as any behavior by introducing a new polymorphic serialization feature, that
should be used in most cases in place of serialize as any.
Fix issue with forward references in parent
TypedDictclasses by @Viicos in #12427.This issue is only relevant on Python 3.14 and greater.
Exclude fields with
exclude_iffrom JSON Schema required fields by @Viicos in #12430Revert URL percent-encoding of credentials in the
build()methodof the
AnyUrland Dsn types by @davidhewitt inpydantic-core#1833.
This was initially considered as a bugfix, but caused regressions and as such was fully reverted. The next release will include
an opt-in option to percent-encode components of the URL.
Add type inference for IP address types by @davidhewitt in pydantic-core#1868.
The 2.12 changes to the
serialize_as_anybehavior made it so that IP address types could not properly serialize to JSON.Avoid getting default values from defaultdict by @davidhewitt in pydantic-core#1853.
This fixes a subtle regression in the validation behavior of the
collections.defaultdicttype.
Fix issue with field serializers on nested typed dictionaries by @davidhewitt in pydantic-core#1879.
Add more
pydantic-corebuilds for the three-threaded version of Python 3.14 by @davidhewitt in pydantic-core#1864.v2.12.3Compare Source
GitHub release
What's Changed
This is the third 2.12 patch release, fixing issues related to the
FieldInfoclass, and reverting a change to the supportedafter model validator function signatures.
Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided
to emit a deprecation warning instead.
FieldInfo.asdict()method, improve documentation aroundFieldInfoby @Viicos in #12411.This also add back support for mutations on
FieldInfoclasses, that are reused asAnnotatedmetadata. However, note that this is stillnot a supported pattern. Instead, please refer to the added example in the documentation.
The blog post section on changes was also updated to document the changes related to
serialize_as_any.v2.12.2Compare Source
GitHub release
What's Changed
Fixes
pydantic-coreversion, as a corrupted CPython 3.10manylinux2014_aarch64wheel got uploaded (pydantic-core#1843).v2.12.1Compare Source
GitHub release
What's Changed
This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release.
Fixes
Noneis converted asNoneTypein Python 3.14 by @Viicos in #12370ValidationInfofor validation of default value by @Viicos in pydantic-core#1826MultiHostUrlbuilder by @willswire in pydantic-core#1829serialize_as_anyserialization flag by @davidhewitt in pydantic-core#1829RootModelserialization issues by @davidhewitt in pydantic-core#1836New Contributors
v2.12.0Compare Source
GitHub release
This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support.
Several minor changes (considered non-breaking changes according to our versioning policy)
are also included in this release. Make sure to look into them before upgrading.
Note that Pydantic V1 is not compatible with Python 3.14 and greater.
What's Changed
See the beta releases for all changes sinces 2.11.
New Features
extraparameter to the validate functions by @anvilpete in #12233exclude_computed_fieldsserialization option by @Viicos in #12334preverse_empty_pathURL options by @Viicos in #12336union_formatparameter to JSON Schema generation by @Viicos in #12147__qualname__parameter forcreate_modelby @Atry in #12001Fixes
TypeAdapterby @Viicos in #12324Anyfor context type annotation inTypeAdapterby @inducer in #12279FieldInfoinpydantic.fields.__all__by @Viicos in #12339validation_aliasin@validate_callby @Viicos in #12340Anyas context annotation in plugin API by @Viicos in #12341stacklevelin warnings when possible by @Viicos in #12342Packaging
New Contributors
Configuration
📅 Schedule: (UTC)
🚦 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 CLI.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: uv.lock
Pending Red 3.6.
ba48c1b8468e44d301a3Update dependency pydantic to ~=2.12.2to Update dependency pydantic to ~=2.12.38e44d301a3ad790cc52bUpdate dependency pydantic to ~=2.12.3to Update dependency pydantic to ~=2.12.4ad790cc52b62f3b73d5462f3b73d54c6780b2a82Update dependency pydantic to ~=2.12.4to Update dependency pydantic to ~=2.12.5c6780b2a82111f7a6c1f111f7a6c1fdc9c9d952adc9c9d952ad3da0af80fd3da0af80f1fff0d15de1fff0d15de4fce9734b64fce9734b681ebd3d6da81ebd3d6da65b715aa8665b715aa866ed588601f6ed588601f9bca89ce94Update dependency pydantic to ~=2.12.5to Update dependency pydantic to ~=2.13.09bca89ce94f5fb0c6679Update dependency pydantic to ~=2.13.0to Update dependency pydantic to ~=2.13.1f5fb0c66798f7df6b2b2Update dependency pydantic to ~=2.13.1to Update dependency pydantic to ~=2.13.28f7df6b2b2a1949e5c13Update dependency pydantic to ~=2.13.2to Update dependency pydantic to ~=2.13.3a1949e5c133d8ea910b73d8ea910b79f46b7a4aeUpdate dependency pydantic to ~=2.13.3to Update dependency pydantic to ~=2.13.49f46b7a4ae17d592c739Update dependency pydantic to ~=2.13.4to fix(deps): update dependency pydantic to ~=2.13.417d592c739fd3ae3f2dffix(deps): update dependency pydantic to ~=2.13.4to fix(deps): update dependency pydantic to ~=2.13.5fd3ae3f2dfcb8a3ac3f0fix(deps): update dependency pydantic to ~=2.13.5to fix(deps): update dependency pydantic to ~=2.14.0cb8a3ac3f0c11c94e263fix(deps): update dependency pydantic to ~=2.14.0to fix(deps): update dependency pydantic to ~=2.14.1c11c94e263cf162a5f1cfix(deps): update dependency pydantic to ~=2.14.1to fix(deps): update dependency pydantic to ~=2.14.2View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.