Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency pydantic to v2.4.1 (#345)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pydantic](https://togithub.com/pydantic/pydantic) ([changelog](https://docs.pydantic.dev/latest/changelog/)) | `==2.3.0` -> `==2.4.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.3.0/2.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.3.0/2.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`v2.4.1`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v241-2023-09-26) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.4.0...v2.4.1) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.4.1) ##### What's Changed ##### Packaging - Update pydantic-core to 2.10.1 by [@​davidhewitt](https://togithub.com/davidhewitt) in [#​7633](https://togithub.com/pydantic/pydantic/pull/7633) ##### Fixes - Serialize unsubstituted type vars as `Any` by [@​adriangb](https://togithub.com/adriangb) in [#​7606](https://togithub.com/pydantic/pydantic/pull/7606) - Remove schema building caches by [@​adriangb](https://togithub.com/adriangb) in [#​7624](https://togithub.com/pydantic/pydantic/pull/7624) - Fix an issue where JSON schema extras weren't JSON encoded by [@​dmontagu](https://togithub.com/dmontagu) in [#​7625](https://togithub.com/pydantic/pydantic/pull/7625) ### [`v2.4.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v240-2023-09-22) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.3.0...v2.4.0) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.4.0) ##### What's Changed ##### Packaging - Update pydantic-core to 2.10.0 by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7542](https://togithub.com/pydantic/pydantic/pull/7542) ##### New Features - Add `Base64Url` types by [@​dmontagu](https://togithub.com/dmontagu) in [#​7286](https://togithub.com/pydantic/pydantic/pull/7286) - Implement optional `number` to `str` coercion by [@​lig](https://togithub.com/lig) in [#​7508](https://togithub.com/pydantic/pydantic/pull/7508) - Allow access to `field_name` and `data` in all validators if there is data and a field name by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7542](https://togithub.com/pydantic/pydantic/pull/7542) - Add `BaseModel.model_validate_strings` and `TypeAdapter.validate_strings` by [@​hramezani](https://togithub.com/hramezani) in [#​7552](https://togithub.com/pydantic/pydantic/pull/7552) - Add Pydantic `plugins` experimental implementation by [@​lig](https://togithub.com/lig) [@​samuelcolvin](https://togithub.com/samuelcolvin) and [@​Kludex](https://togithub.com/Kludex) in [#​6820](https://togithub.com/pydantic/pydantic/pull/6820) ##### Changes - Do not override `model_post_init` in subclass with private attrs by [@​Viicos](https://togithub.com/Viicos) in [#​7302](https://togithub.com/pydantic/pydantic/pull/7302) - Make fields with defaults not required in the serialization schema by default by [@​dmontagu](https://togithub.com/dmontagu) in [#​7275](https://togithub.com/pydantic/pydantic/pull/7275) - Mark `Extra` as deprecated by [@​disrupted](https://togithub.com/disrupted) in [#​7299](https://togithub.com/pydantic/pydantic/pull/7299) - Make `EncodedStr` a dataclass by [@​Kludex](https://togithub.com/Kludex) in [#​7396](https://togithub.com/pydantic/pydantic/pull/7396) - Move `annotated_handlers` to be public by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7569](https://togithub.com/pydantic/pydantic/pull/7569) ##### Performance - Simplify flattening and inlining of `CoreSchema` by [@​adriangb](https://togithub.com/adriangb) in [#​7523](https://togithub.com/pydantic/pydantic/pull/7523) - Remove unused copies in `CoreSchema` walking by [@​adriangb](https://togithub.com/adriangb) in [#​7528](https://togithub.com/pydantic/pydantic/pull/7528) - Add caches for collecting definitions and invalid schemas from a CoreSchema by [@​adriangb](https://togithub.com/adriangb) in [#​7527](https://togithub.com/pydantic/pydantic/pull/7527) - Eagerly resolve discriminated unions and cache cases where we can't by [@​adriangb](https://togithub.com/adriangb) in [#​7529](https://togithub.com/pydantic/pydantic/pull/7529) - Replace `dict.get` and `dict.setdefault` with more verbose versions in `CoreSchema` building hot paths by [@​adriangb](https://togithub.com/adriangb) in [#​7536](https://togithub.com/pydantic/pydantic/pull/7536) - Cache invalid `CoreSchema` discovery by [@​adriangb](https://togithub.com/adriangb) in [#​7535](https://togithub.com/pydantic/pydantic/pull/7535) - Allow disabling `CoreSchema` validation for faster startup times by [@​adriangb](https://togithub.com/adriangb) in [#​7565](https://togithub.com/pydantic/pydantic/pull/7565) ##### Fixes - Fix config detection for `TypedDict` from grandparent classes by [@​dmontagu](https://togithub.com/dmontagu) in [#​7272](https://togithub.com/pydantic/pydantic/pull/7272) - Fix hash function generation for frozen models with unusual MRO by [@​dmontagu](https://togithub.com/dmontagu) in [#​7274](https://togithub.com/pydantic/pydantic/pull/7274) - Make `strict` config overridable in field for Path by [@​hramezani](https://togithub.com/hramezani) in [#​7281](https://togithub.com/pydantic/pydantic/pull/7281) - Use `ser_json_<timedelta|bytes>` on default in `GenerateJsonSchema` by [@​Kludex](https://togithub.com/Kludex) in [#​7269](https://togithub.com/pydantic/pydantic/pull/7269) - Adding a check that alias is validated as an identifier for Python by [@​andree0](https://togithub.com/andree0) in [#​7319](https://togithub.com/pydantic/pydantic/pull/7319) - Raise an error when computed field overrides field by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​7346](https://togithub.com/pydantic/pydantic/pull/7346) - Fix applying `SkipValidation` to referenced schemas by [@​adriangb](https://togithub.com/adriangb) in [#​7381](https://togithub.com/pydantic/pydantic/pull/7381) - Enforce behavior of private attributes having double leading underscore by [@​lig](https://togithub.com/lig) in [#​7265](https://togithub.com/pydantic/pydantic/pull/7265) - Standardize `__get_pydantic_core_schema__` signature by [@​hramezani](https://togithub.com/hramezani) in [#​7415](https://togithub.com/pydantic/pydantic/pull/7415) - Fix generic dataclass fields mutation bug (when using `TypeAdapter`) by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​7435](https://togithub.com/pydantic/pydantic/pull/7435) - Fix `TypeError` on `model_validator` in `wrap` mode by [@​pmmmwh](https://togithub.com/pmmmwh) in [#​7496](https://togithub.com/pydantic/pydantic/pull/7496) - Improve enum error message by [@​hramezani](https://togithub.com/hramezani) in [#​7506](https://togithub.com/pydantic/pydantic/pull/7506) - Make `repr` work for instances that failed initialization when handling `ValidationError`s by [@​dmontagu](https://togithub.com/dmontagu) in [#​7439](https://togithub.com/pydantic/pydantic/pull/7439) - Fixed a regular expression denial of service issue by limiting whitespaces by [@​prodigysml](https://togithub.com/prodigysml) in [#​7360](https://togithub.com/pydantic/pydantic/pull/7360) - Fix handling of `UUID` values having `UUID.version=None` by [@​lig](https://togithub.com/lig) in [#​7566](https://togithub.com/pydantic/pydantic/pull/7566) - Fix `__iter__` returning private `cached_property` info by [@​sydney-runkle](https://togithub.com/sydney-runkle) in [#​7570](https://togithub.com/pydantic/pydantic/pull/7570) - Improvements to version info message by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7594](https://togithub.com/pydantic/pydantic/pull/7594) ##### New Contributors - [@​15498th](https://togithub.com/15498th) made their first contribution in [#​7238](https://togithub.com/pydantic/pydantic/pull/7238) - [@​GabrielCappelli](https://togithub.com/GabrielCappelli) made their first contribution in [#​7213](https://togithub.com/pydantic/pydantic/pull/7213) - [@​tobni](https://togithub.com/tobni) made their first contribution in [#​7184](https://togithub.com/pydantic/pydantic/pull/7184) - [@​redruin1](https://togithub.com/redruin1) made their first contribution in [#​7282](https://togithub.com/pydantic/pydantic/pull/7282) - [@​FacerAin](https://togithub.com/FacerAin) made their first contribution in [#​7288](https://togithub.com/pydantic/pydantic/pull/7288) - [@​acdha](https://togithub.com/acdha) made their first contribution in [#​7297](https://togithub.com/pydantic/pydantic/pull/7297) - [@​andree0](https://togithub.com/andree0) made their first contribution in [#​7319](https://togithub.com/pydantic/pydantic/pull/7319) - [@​gordonhart](https://togithub.com/gordonhart) made their first contribution in [#​7375](https://togithub.com/pydantic/pydantic/pull/7375) - [@​pmmmwh](https://togithub.com/pmmmwh) made their first contribution in [#​7496](https://togithub.com/pydantic/pydantic/pull/7496) - [@​disrupted](https://togithub.com/disrupted) made their first contribution in [#​7299](https://togithub.com/pydantic/pydantic/pull/7299) - [@​prodigysml](https://togithub.com/prodigysml) made their first contribution in [#​7360](https://togithub.com/pydantic/pydantic/pull/7360) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/allenporter/flux-local). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDcuMiIsInVwZGF0ZWRJblZlciI6IjM2LjEwNy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information