Update dependency pydantic to v2.13.3 - autoclosed #26

Closed
renovate[bot] wants to merge 1 commit from renovate/pydantic-2.x-lockfile into master
renovate[bot] commented 2025-06-13 11:28:04 +01:00 (Migrated from github.com)

This PR contains the following updates:

Package Change Age Confidence
pydantic (changelog) 2.11.52.13.3 age confidence

Release Notes

pydantic/pydantic (pydantic)

v2.13.3

Compare Source

GitHub release

What's Changed
Fixes

v2.13.2

Compare Source

v2.13.1: 2026-04-15

Compare Source

v2.13.1 (2026-04-15)

What's Changed
Fixes

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.13.0...v2.13.1

v2.13.0

Compare 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.v1 namespace, 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
  • Allow default factories of private attributes to take validated model data by @​Viicos in #​13013
Changes
Fixes
  • Change type of Any when synthesizing _build_sources for BaseSettings.__init__() signature in the mypy plugin by @​Viicos in #​13049
  • Fix model equality when using runtime extra configuration by @​Viicos in #​13062
Packaging
New Contributors

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: https://github.com/pydantic/pydantic/compare/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

v2.11.7

Compare Source

GitHub release

What's Changed
Fixes

v2.11.6

Compare Source

GitHub release

What's Changed
Fixes

Configuration

📅 Schedule: (UTC)

  • 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.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [pydantic](https://redirect.github.com/pydantic/pydantic) ([changelog](https://docs.pydantic.dev/latest/changelog/)) | `2.11.5` → `2.13.3` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.13.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.11.5/2.13.3?slim=true) | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`v2.13.3`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2133-2026-04-20) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.13.2...v2.13.3) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.13.3) ##### What's Changed ##### Fixes - Handle `AttributeError` subclasses with `from_attributes` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13096](https://redirect.github.com/pydantic/pydantic/pull/13096) ### [`v2.13.2`](https://redirect.github.com/pydantic/pydantic/compare/v2.13.1...v2.13.2) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.13.1...v2.13.2) ### [`v2.13.1`](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.13.1): 2026-04-15 [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.13.0...v2.13.1) #### v2.13.1 (2026-04-15) ##### What's Changed ##### Fixes - Fix `ValidationInfo.data` missing with `model_validate_json()` by [@&#8203;davidhewitt](https://redirect.github.com/davidhewitt) in [#&#8203;13079](https://redirect.github.com/pydantic/pydantic/pull/13079) **Full Changelog**: <https://github.com/pydantic/pydantic/compare/v2.13.0...v2.13.1> ### [`v2.13.0`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2130-2026-04-13) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.5...v2.13.0) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.13.0) The highlights of the v2.13 release are available in the [blog post](https://pydantic.dev/articles/pydantic-v2-13-release). Several minor changes (considered non-breaking changes according to our [versioning policy](https://pydantic.dev/docs/validation/2.13/get-started/version-policy/#pydantic-v2)) are also included in this release. Make sure to look into them before upgrading. This release contains the updated `pydantic.v1` namespace, 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 - Allow default factories of private attributes to take validated model data by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13013](https://redirect.github.com/pydantic/pydantic/pull/13013) ##### Changes - Warn when serializing fixed length tuples with too few items by [@&#8203;arvindsaripalli](https://redirect.github.com/arvindsaripalli) in [#&#8203;13016](https://redirect.github.com/pydantic/pydantic/pull/13016) ##### Fixes - Change type of `Any` when synthesizing `_build_sources` for `BaseSettings.__init__()` signature in the mypy plugin by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13049](https://redirect.github.com/pydantic/pydantic/pull/13049) - Fix model equality when using runtime `extra` configuration by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13062](https://redirect.github.com/pydantic/pydantic/pull/13062) ##### Packaging - Add zizmor for GitHub Actions workflow linting by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13039](https://redirect.github.com/pydantic/pydantic/pull/13039) - Update jiter to v0.14.0 to fix a segmentation fault on musl Linux by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;13064](https://redirect.github.com/pydantic/pydantic/pull/13064) ##### New Contributors - [@&#8203;arvindsaripalli](https://redirect.github.com/arvindsaripalli) made their first contribution in [#&#8203;13016](https://redirect.github.com/pydantic/pydantic/pull/13016) ### [`v2.12.5`](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.12.5): 2025-11-26 [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.4...v2.12.5) #### 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 [@&#8203;ornariece](https://redirect.github.com/ornariece) in [#&#8203;12522](https://redirect.github.com/pydantic/pydantic/pull/12522). - Several updates to the documentation by [@&#8203;Viicos](https://redirect.github.com/Viicos). **Full Changelog**: <https://github.com/pydantic/pydantic/compare/v2.12.4...v2.12.5> ### [`v2.12.4`](https://redirect.github.com/pydantic/pydantic/compare/v2.12.3...v2.12.4) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.3...v2.12.4) ### [`v2.12.3`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2123-2025-10-17) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.2...v2.12.3) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.12.3) ##### 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](https://docs.pydantic.dev/latest/concepts/validators/#model-validators) function signatures. - Raise a warning when an invalid after model validator function signature is raised by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12414](https://redirect.github.com/pydantic/pydantic/pull/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()`](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.FieldInfo.asdict) method, improve documentation around `FieldInfo` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12411](https://redirect.github.com/pydantic/pydantic/pull/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](https://docs.pydantic.dev/latest/examples/dynamic_models/) in the documentation. The [blog post](https://pydantic.dev/articles/pydantic-v2-12-release#changes) section on changes was also updated to document the changes related to `serialize_as_any`. ### [`v2.12.2`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2122-2025-10-14) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.1...v2.12.2) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.12.2) ##### What's Changed ##### Fixes - Release a new `pydantic-core` version, as a corrupted CPython 3.10 `manylinux2014_aarch64` wheel got uploaded ([pydantic-core#1843](https://redirect.github.com/pydantic/pydantic-core/pull/1843)). - Fix issue with recursive generic models with a parent model class by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12398](https://redirect.github.com/pydantic/pydantic/pull/12398) ### [`v2.12.1`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2121-2025-10-13) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.12.0...v2.12.1) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.12.1) ##### 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 - Do not evaluate annotations when inspecting validators and serializers by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12355](https://redirect.github.com/pydantic/pydantic/pull/12355) - Make sure `None` is converted as `NoneType` in Python 3.14 by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12370](https://redirect.github.com/pydantic/pydantic/pull/12370) - Backport V1 runtime warning when using Python 3.14 by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12367](https://redirect.github.com/pydantic/pydantic/pull/12367) - Fix error message for invalid validator signatures by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12366](https://redirect.github.com/pydantic/pydantic/pull/12366) - Populate field name in `ValidationInfo` for validation of default value by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [pydantic-core#1826](https://redirect.github.com/pydantic/pydantic-core/pull/1826) - Encode credentials in `MultiHostUrl` builder by [@&#8203;willswire](https://redirect.github.com/willswire) in [pydantic-core#1829](https://redirect.github.com/pydantic/pydantic-core/pull/1829) - Respect field serializers when using `serialize_as_any` serialization flag by [@&#8203;davidhewitt](https://redirect.github.com/davidhewitt) in [pydantic-core#1829](https://redirect.github.com/pydantic/pydantic-core/pull/1829) - Fix various `RootModel` serialization issues by [@&#8203;davidhewitt](https://redirect.github.com/davidhewitt) in [pydantic-core#1836](https://redirect.github.com/pydantic/pydantic-core/pull/1836) ##### New Contributors - [@&#8203;willswire](https://redirect.github.com/willswire) made their first contribution in [pydantic-core#1829](https://redirect.github.com/pydantic/pydantic-core/pull/1829) ### [`v2.12.0`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2120-2025-10-07) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.10...v2.12.0) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.12.0) ##### 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](https://docs.pydantic.dev/2.12/version-policy/#pydantic-v2)) 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 - Update V1 copy to v1.10.24 by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12338](https://redirect.github.com/pydantic/pydantic/pull/12338) ##### New Features - Add `extra` parameter to the validate functions by [@&#8203;anvilpete](https://redirect.github.com/anvilpete) in [#&#8203;12233](https://redirect.github.com/pydantic/pydantic/pull/12233) - Add `exclude_computed_fields` serialization option by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12334](https://redirect.github.com/pydantic/pydantic/pull/12334) - Add `preverse_empty_path` URL options by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12336](https://redirect.github.com/pydantic/pydantic/pull/12336) - Add `union_format` parameter to JSON Schema generation by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12147](https://redirect.github.com/pydantic/pydantic/pull/12147) - Add `__qualname__` parameter for `create_model` by [@&#8203;Atry](https://redirect.github.com/Atry) in [#&#8203;12001](https://redirect.github.com/pydantic/pydantic/pull/12001) ##### Fixes - Do not try to infer name from lambda definitions in pipelines API by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12289](https://redirect.github.com/pydantic/pydantic/pull/12289) - Use proper namespace for functions in `TypeAdapter` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12324](https://redirect.github.com/pydantic/pydantic/pull/12324) - Use `Any` for context type annotation in `TypeAdapter` by [@&#8203;inducer](https://redirect.github.com/inducer) in [#&#8203;12279](https://redirect.github.com/pydantic/pydantic/pull/12279) - Expose `FieldInfo` in `pydantic.fields.__all__` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12339](https://redirect.github.com/pydantic/pydantic/pull/12339) - Respect `validation_alias` in `@validate_call` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12340](https://redirect.github.com/pydantic/pydantic/pull/12340) - Use `Any` as context annotation in plugin API by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12341](https://redirect.github.com/pydantic/pydantic/pull/12341) - Use proper `stacklevel` in warnings when possible by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;12342](https://redirect.github.com/pydantic/pydantic/pull/12342) ##### New Contributors - [@&#8203;anvilpete](https://redirect.github.com/anvilpete) made their first contribution in [#&#8203;12233](https://redirect.github.com/pydantic/pydantic/pull/12233) - [@&#8203;JonathanWindell](https://redirect.github.com/JonathanWindell) made their first contribution in [#&#8203;12327](https://redirect.github.com/pydantic/pydantic/pull/12327) - [@&#8203;inducer](https://redirect.github.com/inducer) made their first contribution in [#&#8203;12279](https://redirect.github.com/pydantic/pydantic/pull/12279) - [@&#8203;Atry](https://redirect.github.com/Atry) made their first contribution in [#&#8203;12001](https://redirect.github.com/pydantic/pydantic/pull/12001) ### [`v2.11.10`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v21110-2025-10-04) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.9...v2.11.10) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.11.10) ##### What's Changed ##### Fixes - Backport v1.10.24 changes by [@&#8203;Viicos](https://redirect.github.com/Viicos) ### [`v2.11.9`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2119-2025-09-13) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.8...v2.11.9) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.11.9) ##### What's Changed ##### Fixes - Backport v1.10.23 changes by [@&#8203;Viicos](https://redirect.github.com/Viicos) ### [`v2.11.8`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2118-2025-09-13) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.7...v2.11.8) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.11.8) ##### What's Changed ##### Fixes - Fix mypy plugin for mypy 1.18 by [@&#8203;cdce8p](https://redirect.github.com/cdce8p) in [#&#8203;12209](https://redirect.github.com/pydantic/pydantic/pull/12209) ### [`v2.11.7`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2117-2025-06-14) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.6...v2.11.7) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.11.7) ##### What's Changed ##### Fixes - Copy `FieldInfo` instance if necessary during `FieldInfo` build by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;11898](https://redirect.github.com/pydantic/pydantic/pull/11898) ### [`v2.11.6`](https://redirect.github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2116-2025-06-13) [Compare Source](https://redirect.github.com/pydantic/pydantic/compare/v2.11.5...v2.11.6) [GitHub release](https://redirect.github.com/pydantic/pydantic/releases/tag/v2.11.6) ##### What's Changed ##### Fixes - Rebuild dataclass fields before schema generation by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;11949](https://redirect.github.com/pydantic/pydantic/pull/11949) - Always store the original field assignment on `FieldInfo` by [@&#8203;Viicos](https://redirect.github.com/Viicos) in [#&#8203;11946](https://redirect.github.com/pydantic/pydantic/pull/11946) </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cpressland/kv-to-kube). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC41MC4wIiwidXBkYXRlZEluVmVyIjoiNDMuMTIzLjgiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->

Pull request closed

Sign in to join this conversation.
No description provided.