chore(deps): update dependency pydantic_core to v2.46.4 #47

Merged
renovate-bot merged 1 commit from renovate/pydantic_core-2.x into main 2026-05-08 14:51:12 +02:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
pydantic_core ==2.33.2==2.46.4 age confidence

Release Notes

pydantic/pydantic (pydantic_core)

v2.40.1

GitHub release

This is the first beta release of the upcoming 2.12 release.

What's Changed
New Features
Changes
Fixes
  • Fix __getattr__() behavior on Pydantic models when a property raised an AttributeError and extra values are present by @​raspuchin in #​12106
  • Add test to prevent regression with Pydantic models used as annotated metadata by @​Viicos in #​12133
  • Allow to use property setters on Pydantic dataclasses with validate_assignment set by @​Viicos in #​12173
  • Fix mypy v2 plugin for upcoming mypy release by @​cdce8p in #​12209
  • Respect custom title in functions JSON Schema by @​Viicos in #​11892
  • Fix ImportString JSON serialization for objects with a name attribute by @​chr1sj0nes in #​12219
  • Do not error on fields overridden by methods in the mypy plugin by @​Viicos in #​12290
Packaging
New Contributors

v2.35.1

GitHub release

This is the first alpha release of the upcoming 2.12 release, which adds initial support for Python 3.14.

What's Changed
New Features
Changes
Fixes
Packaging
New Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [pydantic_core](https://github.com/pydantic/pydantic) | `==2.33.2` → `==2.46.4` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic-core/2.46.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic-core/2.33.2/2.46.4?slim=true) | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic_core)</summary> ### [`v2.40.1`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2120b1-2025-10-03) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.0b1) This is the first beta release of the upcoming 2.12 release. ##### What's Changed ##### New Features - Add support for `exclude_if` at the field level by [@&#8203;andresliszt](https://github.com/andresliszt) in [#&#8203;12141](https://github.com/pydantic/pydantic/pull/12141) - Add `ValidateAs` annotation helper by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11942](https://github.com/pydantic/pydantic/pull/11942) - Add configuration options for validation and JSON serialization of temporal types by [@&#8203;ollz272](https://github.com/ollz272) in [#&#8203;12068](https://github.com/pydantic/pydantic/pull/12068) - Add support for PEP 728 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12179](https://github.com/pydantic/pydantic/pull/12179) - Add field name in serialization error by [@&#8203;NicolasPllr1](https://github.com/NicolasPllr1) in [pydantic-core#1799](https://github.com/pydantic/pydantic-core/pull/1799) - Add option to preserve empty URL paths by [@&#8203;davidhewitt](https://github.com/davidhewitt) in [pydantic-core#1789](https://github.com/pydantic/pydantic-core/pull/1789) ##### Changes - Raise error if an incompatible `pydantic-core` version is installed by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12196](https://github.com/pydantic/pydantic/pull/12196) - Remove runtime warning for experimental features by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12265](https://github.com/pydantic/pydantic/pull/12265) - Warn if registering virtual subclasses on Pydantic models by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11669](https://github.com/pydantic/pydantic/pull/11669) ##### Fixes - Fix `__getattr__()` behavior on Pydantic models when a property raised an `AttributeError` and extra values are present by [@&#8203;raspuchin](https://github.com/raspuchin) in [#&#8203;12106](https://github.com/pydantic/pydantic/pull/12106) - Add test to prevent regression with Pydantic models used as annotated metadata by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12133](https://github.com/pydantic/pydantic/pull/12133) - Allow to use property setters on Pydantic dataclasses with `validate_assignment` set by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12173](https://github.com/pydantic/pydantic/pull/12173) - Fix mypy v2 plugin for upcoming mypy release by [@&#8203;cdce8p](https://github.com/cdce8p) in [#&#8203;12209](https://github.com/pydantic/pydantic/pull/12209) - Respect custom title in functions JSON Schema by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11892](https://github.com/pydantic/pydantic/pull/11892) - Fix `ImportString` JSON serialization for objects with a `name` attribute by [@&#8203;chr1sj0nes](https://github.com/chr1sj0nes) in [#&#8203;12219](https://github.com/pydantic/pydantic/pull/12219) - Do not error on fields overridden by methods in the mypy plugin by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12290](https://github.com/pydantic/pydantic/pull/12290) ##### Packaging - Bump `pydantic-core` to v2.40.1 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12314](https://github.com/pydantic/pydantic/pull/12314) ##### New Contributors - [@&#8203;raspuchin](https://github.com/raspuchin) made their first contribution in [#&#8203;12106](https://github.com/pydantic/pydantic/pull/12106) - [@&#8203;chr1sj0nes](https://github.com/chr1sj0nes) made their first contribution in [#&#8203;12219](https://github.com/pydantic/pydantic/pull/12219) ### [`v2.35.1`](https://github.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v2120a1-2025-07-26) [GitHub release](https://github.com/pydantic/pydantic/releases/tag/v2.12.0a1) This is the first alpha release of the upcoming 2.12 release, which adds initial support for Python 3.14. ##### What's Changed ##### New Features - Add `__pydantic_on_complete__()` hook that is called once model is fully ready to be used by [@&#8203;DouweM](https://github.com/DouweM) in [#&#8203;11762](https://github.com/pydantic/pydantic/pull/11762) - Add initial support for Python 3.14 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11991](https://github.com/pydantic/pydantic/pull/11991) - Add regex patterns to JSON schema for `Decimal` type by [@&#8203;Dima-Bulavenko](https://github.com/Dima-Bulavenko) in [#&#8203;11987](https://github.com/pydantic/pydantic/pull/11987) - Add support for `doc` attribute on dataclass fields by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12077](https://github.com/pydantic/pydantic/pull/12077) - Add experimental `MISSING` sentinel by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11883](https://github.com/pydantic/pydantic/pull/11883) ##### Changes - Allow config and bases to be specified together in `create_model()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11714](https://github.com/pydantic/pydantic/pull/11714) - Move some field logic out of the `GenerateSchema` class by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11733](https://github.com/pydantic/pydantic/pull/11733) - Always make use of `inspect.getsourcelines()` for docstring extraction on Python 3.13 and greater by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11829](https://github.com/pydantic/pydantic/pull/11829) - Only support the latest Mypy version by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11832](https://github.com/pydantic/pydantic/pull/11832) - Do not implicitly convert after model validators to class methods by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11957](https://github.com/pydantic/pydantic/pull/11957) - Refactor `FieldInfo` creation implementation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11898](https://github.com/pydantic/pydantic/pull/11898) - Make `Secret` covariant by [@&#8203;bluenote10](https://github.com/bluenote10) in [#&#8203;12008](https://github.com/pydantic/pydantic/pull/12008) - Emit warning when field-specific metadata is used in invalid contexts by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12028](https://github.com/pydantic/pydantic/pull/12028) ##### Fixes - Properly fetch plain serializer function when serializing default value in JSON Schema by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11721](https://github.com/pydantic/pydantic/pull/11721) - Remove generics cache workaround by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11755](https://github.com/pydantic/pydantic/pull/11755) - Remove coercion of decimal constraints by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11772](https://github.com/pydantic/pydantic/pull/11772) - Fix crash when expanding root type in the mypy plugin by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11735](https://github.com/pydantic/pydantic/pull/11735) - Only mark model as complete once all fields are complete by [@&#8203;DouweM](https://github.com/DouweM) in [#&#8203;11759](https://github.com/pydantic/pydantic/pull/11759) - Do not provide `field_name` in validator core schemas by [@&#8203;DouweM](https://github.com/DouweM) in [#&#8203;11761](https://github.com/pydantic/pydantic/pull/11761) - Fix issue with recursive generic models by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11775](https://github.com/pydantic/pydantic/pull/11775) - Fix qualified name comparison of private attributes during namespace inspection by [@&#8203;karta9821](https://github.com/karta9821) in [#&#8203;11803](https://github.com/pydantic/pydantic/pull/11803) - Make sure Pydantic dataclasses with slots and `validate_assignment` can be unpickled by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11769](https://github.com/pydantic/pydantic/pull/11769) - Traverse `function-before` schemas during schema gathering by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11801](https://github.com/pydantic/pydantic/pull/11801) - Fix check for stdlib dataclasses by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11822](https://github.com/pydantic/pydantic/pull/11822) - Check if `FieldInfo` is complete after applying type variable map by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11855](https://github.com/pydantic/pydantic/pull/11855) - Do not delete mock validator/serializer in `model_rebuild()` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11890](https://github.com/pydantic/pydantic/pull/11890) - Rebuild dataclass fields before schema generation by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11949](https://github.com/pydantic/pydantic/pull/11949) - Always store the original field assignment on `FieldInfo` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11946](https://github.com/pydantic/pydantic/pull/11946) - Do not use deprecated methods as default field values by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11914](https://github.com/pydantic/pydantic/pull/11914) - Allow callable discriminator to be applied on PEP 695 type aliases by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11941](https://github.com/pydantic/pydantic/pull/11941) - Suppress core schema generation warning when using `SkipValidation` by [@&#8203;ygsh0816](https://github.com/ygsh0816) in [#&#8203;12002](https://github.com/pydantic/pydantic/pull/12002) - Do not emit typechecking error for invalid `Field()` default with `validate_default` set to `True` by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11988](https://github.com/pydantic/pydantic/pull/11988) - Refactor logic to support Pydantic's `Field()` function in dataclasses by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12051](https://github.com/pydantic/pydantic/pull/12051) ##### Packaging - Update project metadata to use PEP 639 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11694](https://github.com/pydantic/pydantic/pull/11694) - Bump `mkdocs-llmstxt` to v0.2.0 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11725](https://github.com/pydantic/pydantic/pull/11725) - Bump `pydantic-core` to v2.35.1 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;11963](https://github.com/pydantic/pydantic/pull/11963) - Bump dawidd6/action-download-artifact from 10 to 11 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;12033](https://github.com/pydantic/pydantic/pull/12033) - Bump astral-sh/setup-uv from 5 to 6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;11826](https://github.com/pydantic/pydantic/pull/11826) - Update mypy to 1.17.0 by [@&#8203;Viicos](https://github.com/Viicos) in [#&#8203;12076](https://github.com/pydantic/pydantic/pull/12076) ##### New Contributors - [@&#8203;parth-paradkar](https://github.com/parth-paradkar) made their first contribution in [#&#8203;11695](https://github.com/pydantic/pydantic/pull/11695) - [@&#8203;dqkqd](https://github.com/dqkqd) made their first contribution in [#&#8203;11739](https://github.com/pydantic/pydantic/pull/11739) - [@&#8203;fhightower](https://github.com/fhightower) made their first contribution in [#&#8203;11722](https://github.com/pydantic/pydantic/pull/11722) - [@&#8203;gbaian10](https://github.com/gbaian10) made their first contribution in [#&#8203;11766](https://github.com/pydantic/pydantic/pull/11766) - [@&#8203;DouweM](https://github.com/DouweM) made their first contribution in [#&#8203;11759](https://github.com/pydantic/pydantic/pull/11759) - [@&#8203;bowenliang123](https://github.com/bowenliang123) made their first contribution in [#&#8203;11719](https://github.com/pydantic/pydantic/pull/11719) - [@&#8203;rawwar](https://github.com/rawwar) made their first contribution in [#&#8203;11799](https://github.com/pydantic/pydantic/pull/11799) - [@&#8203;karta9821](https://github.com/karta9821) made their first contribution in [#&#8203;11803](https://github.com/pydantic/pydantic/pull/11803) - [@&#8203;jinnovation](https://github.com/jinnovation) made their first contribution in [#&#8203;11834](https://github.com/pydantic/pydantic/pull/11834) - [@&#8203;zmievsa](https://github.com/zmievsa) made their first contribution in [#&#8203;11861](https://github.com/pydantic/pydantic/pull/11861) - [@&#8203;Otto-AA](https://github.com/Otto-AA) made their first contribution in [#&#8203;11860](https://github.com/pydantic/pydantic/pull/11860) - [@&#8203;ygsh0816](https://github.com/ygsh0816) made their first contribution in [#&#8203;12002](https://github.com/pydantic/pydantic/pull/12002) - [@&#8203;lukland](https://github.com/lukland) made their first contribution in [#&#8203;12015](https://github.com/pydantic/pydantic/pull/12015) - [@&#8203;Dima-Bulavenko](https://github.com/Dima-Bulavenko) made their first contribution in [#&#8203;11987](https://github.com/pydantic/pydantic/pull/11987) - [@&#8203;GSemikozov](https://github.com/GSemikozov) made their first contribution in [#&#8203;12050](https://github.com/pydantic/pydantic/pull/12050) - [@&#8203;hannah-heywa](https://github.com/hannah-heywa) made their first contribution in [#&#8203;12082](https://github.com/pydantic/pydantic/pull/12082) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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 [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjguNSIsInVwZGF0ZWRJblZlciI6IjQzLjE2OC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
renovate-bot added 1 commit 2026-05-07 15:01:02 +02:00
renovate-bot scheduled this pull request to auto merge when all checks succeed 2026-05-07 15:01:04 +02:00
renovate-bot merged commit 6daebe943b into main 2026-05-08 14:51:12 +02:00
renovate-bot deleted branch renovate/pydantic_core-2.x 2026-05-08 14:51:14 +02:00
Sign in to join this conversation.
No description provided.