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.2.1 (#241)
[![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.1.1` -> `==2.2.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.1.1/2.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.1.1/2.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`v2.2.1`](https://togithub.com/pydantic/pydantic/releases/tag/v2.2.1): 2023-08-18 [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.2.0...v2.2.1) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed - Make xfailing test for root model extra stop xfailing by [@​dmontagu](https://togithub.com/dmontagu) in [pydantic/pydantic#6937 - Optimize recursion detection by stopping on the second visit for the β¦ by [@​mciucu](https://togithub.com/mciucu) in [pydantic/pydantic#7160 - fix link in docs by [@​tlambert03](https://togithub.com/tlambert03) in [pydantic/pydantic#7166 - Bump pydantic-core to 2.6.1 and prepare 2.2.1 release by [@​adriangb](https://togithub.com/adriangb) in [pydantic/pydantic#7176 #### New Contributors - [@​mciucu](https://togithub.com/mciucu) made their first contribution in [pydantic/pydantic#7160 **Full Changelog**: pydantic/pydantic@v2.2.0...v2.2.1 ### [`v2.2.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v220-2023-08-17) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.1.1...v2.2.0) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.2.0) - Split "pipx install" setup command into two commands on the documentation site by [@​nomadmtb](https://togithub.com/nomadmtb) in [#​6869](https://togithub.com/pydantic/pydantic/pull/6869) - Deprecate `Field.include` by [@​hramezani](https://togithub.com/hramezani) in [#​6852](https://togithub.com/pydantic/pydantic/pull/6852) - Fix typo in default factory error msg by [@​hramezani](https://togithub.com/hramezani) in [#​6880](https://togithub.com/pydantic/pydantic/pull/6880) - Simplify handling of typing.Annotated in GenerateSchema by [@​dmontagu](https://togithub.com/dmontagu) in [#​6887](https://togithub.com/pydantic/pydantic/pull/6887) - Re-enable fastapi tests in CI by [@​dmontagu](https://togithub.com/dmontagu) in [#​6883](https://togithub.com/pydantic/pydantic/pull/6883) - Make it harder to hit collisions with json schema defrefs by [@​dmontagu](https://togithub.com/dmontagu) in [#​6566](https://togithub.com/pydantic/pydantic/pull/6566) - Cleaner error for invalid input to `Path` fields by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​6903](https://togithub.com/pydantic/pydantic/pull/6903) - π support Coordinate Type by [@​yezz123](https://togithub.com/yezz123) in [#​6906](https://togithub.com/pydantic/pydantic/pull/6906) - Fix `ForwardRef` wrapper for py 3.10.0 (shim until bpo-45166) by [@​randomir](https://togithub.com/randomir) in [#​6919](https://togithub.com/pydantic/pydantic/pull/6919) - Fix misbehavior related to copying of RootModel by [@​dmontagu](https://togithub.com/dmontagu) in [#​6918](https://togithub.com/pydantic/pydantic/pull/6918) - Fix issue with recursion error caused by ParamSpec by [@​dmontagu](https://togithub.com/dmontagu) in [#​6923](https://togithub.com/pydantic/pydantic/pull/6923) - Add section about Constrained classes to the Migration Guide by [@​Kludex](https://togithub.com/Kludex) in [#​6924](https://togithub.com/pydantic/pydantic/pull/6924) - Use `main` branch for badge links by [@​Viicos](https://togithub.com/Viicos) in [#​6925](https://togithub.com/pydantic/pydantic/pull/6925) - Add test for v1/v2 Annotated discrepancy by [@​carlbordum](https://togithub.com/carlbordum) in [#​6926](https://togithub.com/pydantic/pydantic/pull/6926) - Make the v1 mypy plugin work with both v1 and v2 by [@​dmontagu](https://togithub.com/dmontagu) in [#​6921](https://togithub.com/pydantic/pydantic/pull/6921) - Fix issue where generic models couldn't be parametrized with BaseModel by [@​dmontagu](https://togithub.com/dmontagu) in [#​6933](https://togithub.com/pydantic/pydantic/pull/6933) - Remove xfail for discriminated union with alias by [@​dmontagu](https://togithub.com/dmontagu) in [#​6938](https://togithub.com/pydantic/pydantic/pull/6938) - add field_serializer to computed_field by [@​andresliszt](https://togithub.com/andresliszt) in [#​6965](https://togithub.com/pydantic/pydantic/pull/6965) - Use union_schema with Type\[Union\[...]] by [@​JeanArhancet](https://togithub.com/JeanArhancet) in [#​6952](https://togithub.com/pydantic/pydantic/pull/6952) - Fix inherited typeddict attributes / config by [@​adriangb](https://togithub.com/adriangb) in [#​6981](https://togithub.com/pydantic/pydantic/pull/6981) - fix dataclass annotated before validator called twice by [@​davidhewitt](https://togithub.com/davidhewitt) in [#​6998](https://togithub.com/pydantic/pydantic/pull/6998) - Update test-fastapi deselected tests by [@​hramezani](https://togithub.com/hramezani) in [#​7014](https://togithub.com/pydantic/pydantic/pull/7014) - Fix validator doc format by [@​hramezani](https://togithub.com/hramezani) in [#​7015](https://togithub.com/pydantic/pydantic/pull/7015) - Fix typo in docstring of model_json_schema by [@​AdamVinch-Federated](https://togithub.com/AdamVinch-Federated) in [#​7032](https://togithub.com/pydantic/pydantic/pull/7032) - remove unused "type ignores" with pyright by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7026](https://togithub.com/pydantic/pydantic/pull/7026) - Add benchmark representing FastAPI startup time by [@​adriangb](https://togithub.com/adriangb) in [#​7030](https://togithub.com/pydantic/pydantic/pull/7030) - Fix json_encoders for Enum subclasses by [@​adriangb](https://togithub.com/adriangb) in [#​7029](https://togithub.com/pydantic/pydantic/pull/7029) - Update docstring of `ser_json_bytes` regarding base64 encoding by [@​Viicos](https://togithub.com/Viicos) in [#​7052](https://togithub.com/pydantic/pydantic/pull/7052) - Allow `@validate_call` to work on async methods by [@​adriangb](https://togithub.com/adriangb) in [#​7046](https://togithub.com/pydantic/pydantic/pull/7046) - Fix: mypy error with `Settings` and `SettingsConfigDict` by [@​JeanArhancet](https://togithub.com/JeanArhancet) in [#​7002](https://togithub.com/pydantic/pydantic/pull/7002) - Fix some typos (repeated words and it's/its) by [@​eumiro](https://togithub.com/eumiro) in [#​7063](https://togithub.com/pydantic/pydantic/pull/7063) - Fix the typo in docstring by [@​harunyasar](https://togithub.com/harunyasar) in [#​7062](https://togithub.com/pydantic/pydantic/pull/7062) - Docs: Fix broken URL in the pydantic-settings package recommendation by [@​swetjen](https://togithub.com/swetjen) in [#​6995](https://togithub.com/pydantic/pydantic/pull/6995) - Handle constraints being applied to schemas that don't accept it by [@​adriangb](https://togithub.com/adriangb) in [#​6951](https://togithub.com/pydantic/pydantic/pull/6951) - Replace almost_equal_floats with math.isclose by [@​eumiro](https://togithub.com/eumiro) in [#​7082](https://togithub.com/pydantic/pydantic/pull/7082) - bump pydantic-core to 2.5.0 by [@​davidhewitt](https://togithub.com/davidhewitt) in [#​7077](https://togithub.com/pydantic/pydantic/pull/7077) - Add `short_version` and use it in links by [@​hramezani](https://togithub.com/hramezani) in [#​7115](https://togithub.com/pydantic/pydantic/pull/7115) - π Add usage link to `RootModel` by [@​Kludex](https://togithub.com/Kludex) in [#​7113](https://togithub.com/pydantic/pydantic/pull/7113) - Revert "Fix default port for mongosrv DSNs ([#​6827](https://togithub.com/pydantic/pydantic/issues/6827))" by [@​Kludex](https://togithub.com/Kludex) in [#​7116](https://togithub.com/pydantic/pydantic/pull/7116) - Clarify validate_default and \_Unset handling in usage docs and migration guide by [@​benbenbang](https://togithub.com/benbenbang) in [#​6950](https://togithub.com/pydantic/pydantic/pull/6950) - Tweak documentation of `Field.exclude` by [@​Viicos](https://togithub.com/Viicos) in [#​7086](https://togithub.com/pydantic/pydantic/pull/7086) - Do not require `validate_assignment` to use `Field.frozen` by [@​Viicos](https://togithub.com/Viicos) in [#​7103](https://togithub.com/pydantic/pydantic/pull/7103) - tweaks to `_core_utils` by [@​samuelcolvin](https://togithub.com/samuelcolvin) in [#​7040](https://togithub.com/pydantic/pydantic/pull/7040) - Make DefaultDict working with set by [@​hramezani](https://togithub.com/hramezani) in [#​7126](https://togithub.com/pydantic/pydantic/pull/7126) - Don't always require typing.Generic as a base for partially parametrized models by [@​dmontagu](https://togithub.com/dmontagu) in [#​7119](https://togithub.com/pydantic/pydantic/pull/7119) - Fix issue with JSON schema incorrectly using parent class core schema by [@​dmontagu](https://togithub.com/dmontagu) in [#​7020](https://togithub.com/pydantic/pydantic/pull/7020) - Fix xfailed test related to TypedDict and alias_generator by [@​dmontagu](https://togithub.com/dmontagu) in [#​6940](https://togithub.com/pydantic/pydantic/pull/6940) - Improve error message for NameEmail by [@​dmontagu](https://togithub.com/dmontagu) in [#​6939](https://togithub.com/pydantic/pydantic/pull/6939) - Fix generic computed fields by [@​dmontagu](https://togithub.com/dmontagu) in [#​6988](https://togithub.com/pydantic/pydantic/pull/6988) - Reflect namedtuple default values during validation by [@​dmontagu](https://togithub.com/dmontagu) in [#​7144](https://togithub.com/pydantic/pydantic/pull/7144) - Update dependencies, fix pydantic-core usage, fix CI issues by [@​dmontagu](https://togithub.com/dmontagu) in [#​7150](https://togithub.com/pydantic/pydantic/pull/7150) - Add mypy 1.5.0 by [@​hramezani](https://togithub.com/hramezani) in [#​7118](https://togithub.com/pydantic/pydantic/pull/7118) - Handle non-json native enum values by [@​adriangb](https://togithub.com/adriangb) in [#​7056](https://togithub.com/pydantic/pydantic/pull/7056) - document `round_trip` in Json type documentation by [@​jc-louis](https://togithub.com/jc-louis) in [#​7137](https://togithub.com/pydantic/pydantic/pull/7137) - Relax signature checks to better support builtins and C extension functions as validators by [@​adriangb](https://togithub.com/adriangb) in [#​7101](https://togithub.com/pydantic/pydantic/pull/7101) - add union_mode='left_to_right' by [@​davidhewitt](https://togithub.com/davidhewitt) in [#​7151](https://togithub.com/pydantic/pydantic/pull/7151) - Include an error message hint for inherited ordering by [@​yvalencia91](https://togithub.com/yvalencia91) in [#​7124](https://togithub.com/pydantic/pydantic/pull/7124) - Fix one docs link and resolve some warnings for two others by [@​dmontagu](https://togithub.com/dmontagu) in [#​7153](https://togithub.com/pydantic/pydantic/pull/7153) - Include Field extra keys name in warning by [@​hramezani](https://togithub.com/hramezani) in [#​7136](https://togithub.com/pydantic/pydantic/pull/7136) </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/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information