Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 5, 2025

This PR contains the following updates:

Package Change Age Confidence
pydantic (changelog) >=2.11.7 -> >=2.12.5 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

pydantic/pydantic (pydantic)

v2.12.5: 2025-11-26

Compare Source

v2.12.5 (2025-11-26)

This is the fifth 2.12 patch release, addressing an issue with the MISSING sentinel 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.

  • Fix pickle error when using model_construct() on a model with MISSING as a default value by @​ornariece in #​12522.
  • Several updates to the documentation by @​Viicos.

Full Changelog: pydantic/pydantic@v2.12.4...v2.12.5

v2.12.4

Compare Source

v2.12.3

Compare Source

GitHub release

What's Changed

This is the third 2.13 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported
after model validator function signatures.

  • Raise a warning when an invalid after model validator function signature is raised by @​Viicos in #​12414.
    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.
  • Add FieldInfo.asdict() method, improve documentation around FieldInfo by @​Viicos in #​12411.
    This also add back support for mutations on FieldInfo classes, that are reused as Annotated metadata. However, note that this is still
    not 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.2

Compare Source

GitHub release

What's Changed
Fixes
  • Release a new pydantic-core version, as a corrupted CPython 3.10 manylinux2014_aarch64 wheel got uploaded (pydantic-core#1843).
  • Fix issue with recursive generic models with a parent model class by @​Viicos in #​12398

v2.12.1

Compare 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
New Contributors

v2.12.0

Compare 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
Fixes
New Contributors

v2.11.10

Compare Source

GitHub release

What's Changed
Fixes

v2.11.9

Compare Source

GitHub release

What's Changed
Fixes

v2.11.8

Compare Source

GitHub release

What's Changed
Fixes

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@claude
Copy link

claude bot commented Dec 5, 2025

PR Review: Pydantic Dependency Update (2.11.7 → 2.12.5)

Overview

This PR updates pydantic from >=2.11.7 to >=2.12.5, a minor version bump. The update includes bug fixes and new features while maintaining backwards compatibility.

Review Findings

✅ Code Quality & Compatibility

  • No breaking changes detected that affect this codebase
  • Core pydantic features used (field_validator, model_validator, RootModel) remain stable
  • Validator signatures and behavior unchanged

✅ Security & Stability

  • Update includes fixes for MISSING sentinel pickle errors (v2.12.5)
  • Fixes for FieldInfo mutations and validator function signatures (v2.12.3)
  • Improved recursive generic models handling (v2.12.2)

✅ Relevant Improvements

  • Better serialize_as_any behavior with field serializers (used indirectly via MCP types)
  • RootModel serialization fixes (used in toolhive/api_models/types.py)
  • Python 3.14 support added (future-proofing)

⚠️ Minor Considerations

  • typing-inspection updated (0.4.1 → 0.4.2) as transitive dependency
  • pydantic-core updated (2.33.2 → 2.41.5) - significant internal changes but API-compatible
  • Test suite should be run to verify no regressions

Recommendations

  1. Approve and merge - This is a safe dependency update
  2. Ensure CI tests pass before merging
  3. No code changes required

Testing Notes

The codebase uses standard pydantic patterns that are stable across this version range:

  • @field_validator(mode="before/after") - 20+ usages
  • @model_validator(mode="after") - 10+ usages
  • Custom validation with numpy arrays - well tested

Estimated review time: < 2 minutes

@therealnb therealnb merged commit 9ee7c80 into main Dec 5, 2025
6 checks passed
@therealnb therealnb deleted the renovate/pydantic-2.x branch December 5, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants