Skip to content

Commit c689f40

Browse files
authored
fix(deps): Update dependency pydantic to v2.12.3 (#47)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pydantic](https://redirect.github.com/pydantic/pydantic) ([changelog](https://docs.pydantic.dev/latest/changelog/)) | dependencies | minor | `2.11.9` -> `2.12.3` | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`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.12 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) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), 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 has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yMi4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIl19-->
1 parent 7f986b8 commit c689f40

File tree

1 file changed

+128
-110
lines changed

1 file changed

+128
-110
lines changed

0 commit comments

Comments
 (0)