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.11.7→==2.12.5==2.33.2→==2.41.5==2.33.2→==2.41.5Release Notes
pydantic/pydantic (pydantic)
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
What's Changed
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.
Changes (see the alpha and beta releases for additional changes since 2.11):
Packaging
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 #12342New Contributors
v2.11.10Compare Source
GitHub release
What's Changed
Fixes
v2.11.9Compare Source
GitHub release
What's Changed
Fixes
v2.11.8Compare Source
GitHub release
What's Changed
Fixes
pydantic/pydantic-core (pydantic-core)
v2.41.5Compare Source
What's Changed
date/datetime/time/timedeltaby pulling downcast checks up by @astei in #1851JsonValue: Deduplicate keys before populating Dict by @friendlymatthew in #1865New Contributors
Full Changelog: pydantic/pydantic-core@v2.41.4...v2.41.5
v2.41.4Compare Source
v2.41.3Compare Source
v2.41.2: 2025-10-13Compare Source
What's Changed
field_nameinInternalValidatorby @Viicos in #1834field_serializerwhen usingserialize_as_any=Trueby @davidhewitt in #1835RootModelserialization issues by @davidhewitt in #1836New Contributors
Full Changelog: pydantic/pydantic-core@v2.41.1...v2.41.2
v2.41.1: 2025-10-06Compare Source
What's Changed
url_preserve_empty_pathentry toCoreConfigby @Viicos in #1823Full Changelog: pydantic/pydantic-core@v2.41.0...v2.41.1
v2.41.0: 2025-10-06Compare Source
What's Changed
default_factorywhich takes data on more types by @davidhewitt in #1822collections.OrderedDictby @CloseChoice in #1801New Contributors
Full Changelog: pydantic/pydantic-core@v2.40.1...v2.41.0
v2.40.1: 2025-10-02Compare Source
What's Changed
ModelValidator.validate_construct()by @Viicos in #1818Full Changelog: pydantic/pydantic-core@v2.40.0...v2.40.1
v2.40.0: 2025-10-01Compare Source
What's Changed
extraparameter to the validate functions by @anvilpete in #1722EitherString::as_cowimplementation by @davidhewitt in #1794New Contributors
Full Changelog: pydantic/pydantic-core@v2.39.0...v2.40.0
v2.39.0: 2025-08-11Compare Source
What's Changed
exclude_computed_fieldsserialization option by @Viicos in #1780Full Changelog: pydantic/pydantic-core@v2.38.0...v2.39.0
v2.38.0: 2025-08-04Compare Source
What's Changed
ValidationError.from_exception_data()docstring by @kinuax in #1768New Contributors
Full Changelog: pydantic/pydantic-core@v2.37.2...v2.38.0
v2.37.2: 2025-07-26Compare Source
What's Changed
missing-sentinelcore schema by @Viicos in #1765Full Changelog: pydantic/pydantic-core@v2.37.1...v2.37.2
v2.37.1: 2025-07-25Compare Source
What's Changed
Identical to v2.37.0.
v2.37.0: 2025-07-25Compare Source
What's Changed
MISSINGsentinel by @Viicos in #1711Full Changelog: pydantic/pydantic-core@v2.36.0...v2.37.0
v2.36.0: 2025-07-23Compare Source
What's Changed
exclude_iflogic at the field level by @andresliszt in #1535Full Changelog: pydantic/pydantic-core@v2.35.2...v2.36.0
v2.35.2: 2025-06-26Compare Source
What's Changed
speedate0.16 by @davidhewitt in #1740SerializationInfoby @Viicos in #1747Full Changelog: pydantic/pydantic-core@v2.35.1...v2.35.2
v2.35.1: 2025-06-11Compare Source
What's Changed
ValidationInfoandSerializationInfoby @Viicos in #1736Full Changelog: pydantic/pydantic-core@v2.35.0...v2.35.1
v2.35.0: 2025-06-11Compare Source
What's Changed
exclude_noneis set by @Viicos in #1708pypa/gh-action-pypi-publishby @samuelcolvin in #1599'time'schema constraints by @Viicos in #1720preserve_orderfeature by @davidhewitt in #1724PydanticUseDefaultexception message by @Viicos in #1730ensure_asciioption by @Viicos in #1689TzInfoby @Viicos in #1701ValidationInfoandSerializationInfogeneric forcontextby @Viicos in #1686New Contributors
Full Changelog: pydantic/pydantic-core@v2.34.1...v2.35.0
v2.34.1Compare Source
v2.34.0: 2025-04-17Compare Source
What's Changed
BigIntto validate againstfloatschema by @Viicos in #1685ValidationInfo.field_nameis correct on validator reuse by @DouweM in #1692releasejob by @Viicos in #1695releasejob x2 by @Viicos in #1696New Contributors
Full Changelog: pydantic/pydantic-core@v2.33.1...v2.34.0
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.