Skip to content

Commit

Permalink
Update dependency pydantic to v2.2.1 (#241)
Browse files Browse the repository at this point in the history
[![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
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[pydantic/pydantic#6937
- Optimize recursion detection by stopping on the second visit for the …
by [@&#8203;mciucu](https://togithub.com/mciucu) in
[pydantic/pydantic#7160
- fix link in docs by
[@&#8203;tlambert03](https://togithub.com/tlambert03) in
[pydantic/pydantic#7166
- Bump pydantic-core to 2.6.1 and prepare 2.2.1 release by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[pydantic/pydantic#7176

#### New Contributors

- [@&#8203;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 [@&#8203;nomadmtb](https://togithub.com/nomadmtb)
in [#&#8203;6869](https://togithub.com/pydantic/pydantic/pull/6869)
- Deprecate `Field.include` by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;6852](https://togithub.com/pydantic/pydantic/pull/6852)
- Fix typo in default factory error msg by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;6880](https://togithub.com/pydantic/pydantic/pull/6880)
- Simplify handling of typing.Annotated in GenerateSchema by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6887](https://togithub.com/pydantic/pydantic/pull/6887)
- Re-enable fastapi tests in CI by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6883](https://togithub.com/pydantic/pydantic/pull/6883)
- Make it harder to hit collisions with json schema defrefs by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6566](https://togithub.com/pydantic/pydantic/pull/6566)
- Cleaner error for invalid input to `Path` fields by
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
[#&#8203;6903](https://togithub.com/pydantic/pydantic/pull/6903)
- πŸ“ support Coordinate Type by
[@&#8203;yezz123](https://togithub.com/yezz123) in
[#&#8203;6906](https://togithub.com/pydantic/pydantic/pull/6906)
- Fix `ForwardRef` wrapper for py 3.10.0 (shim until bpo-45166) by
[@&#8203;randomir](https://togithub.com/randomir) in
[#&#8203;6919](https://togithub.com/pydantic/pydantic/pull/6919)
- Fix misbehavior related to copying of RootModel by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6918](https://togithub.com/pydantic/pydantic/pull/6918)
- Fix issue with recursion error caused by ParamSpec by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6923](https://togithub.com/pydantic/pydantic/pull/6923)
- Add section about Constrained classes to the Migration Guide by
[@&#8203;Kludex](https://togithub.com/Kludex) in
[#&#8203;6924](https://togithub.com/pydantic/pydantic/pull/6924)
- Use `main` branch for badge links by
[@&#8203;Viicos](https://togithub.com/Viicos) in
[#&#8203;6925](https://togithub.com/pydantic/pydantic/pull/6925)
- Add test for v1/v2 Annotated discrepancy by
[@&#8203;carlbordum](https://togithub.com/carlbordum) in
[#&#8203;6926](https://togithub.com/pydantic/pydantic/pull/6926)
- Make the v1 mypy plugin work with both v1 and v2 by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6921](https://togithub.com/pydantic/pydantic/pull/6921)
- Fix issue where generic models couldn't be parametrized with BaseModel
by [@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6933](https://togithub.com/pydantic/pydantic/pull/6933)
- Remove xfail for discriminated union with alias by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6938](https://togithub.com/pydantic/pydantic/pull/6938)
- add field_serializer to computed_field by
[@&#8203;andresliszt](https://togithub.com/andresliszt) in
[#&#8203;6965](https://togithub.com/pydantic/pydantic/pull/6965)
- Use union_schema with Type\[Union\[...]] by
[@&#8203;JeanArhancet](https://togithub.com/JeanArhancet) in
[#&#8203;6952](https://togithub.com/pydantic/pydantic/pull/6952)
- Fix inherited typeddict attributes / config by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;6981](https://togithub.com/pydantic/pydantic/pull/6981)
- fix dataclass annotated before validator called twice by
[@&#8203;davidhewitt](https://togithub.com/davidhewitt) in
[#&#8203;6998](https://togithub.com/pydantic/pydantic/pull/6998)
- Update test-fastapi deselected tests by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;7014](https://togithub.com/pydantic/pydantic/pull/7014)
- Fix validator doc format by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;7015](https://togithub.com/pydantic/pydantic/pull/7015)
- Fix typo in docstring of model_json_schema by
[@&#8203;AdamVinch-Federated](https://togithub.com/AdamVinch-Federated)
in [#&#8203;7032](https://togithub.com/pydantic/pydantic/pull/7032)
- remove unused "type ignores" with pyright by
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
[#&#8203;7026](https://togithub.com/pydantic/pydantic/pull/7026)
- Add benchmark representing FastAPI startup time by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;7030](https://togithub.com/pydantic/pydantic/pull/7030)
- Fix json_encoders for Enum subclasses by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;7029](https://togithub.com/pydantic/pydantic/pull/7029)
- Update docstring of `ser_json_bytes` regarding base64 encoding by
[@&#8203;Viicos](https://togithub.com/Viicos) in
[#&#8203;7052](https://togithub.com/pydantic/pydantic/pull/7052)
- Allow `@validate_call` to work on async methods by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;7046](https://togithub.com/pydantic/pydantic/pull/7046)
- Fix: mypy error with `Settings` and `SettingsConfigDict` by
[@&#8203;JeanArhancet](https://togithub.com/JeanArhancet) in
[#&#8203;7002](https://togithub.com/pydantic/pydantic/pull/7002)
- Fix some typos (repeated words and it's/its) by
[@&#8203;eumiro](https://togithub.com/eumiro) in
[#&#8203;7063](https://togithub.com/pydantic/pydantic/pull/7063)
- Fix the typo in docstring by
[@&#8203;harunyasar](https://togithub.com/harunyasar) in
[#&#8203;7062](https://togithub.com/pydantic/pydantic/pull/7062)
- Docs: Fix broken URL in the pydantic-settings package recommendation
by [@&#8203;swetjen](https://togithub.com/swetjen) in
[#&#8203;6995](https://togithub.com/pydantic/pydantic/pull/6995)
- Handle constraints being applied to schemas that don't accept it by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;6951](https://togithub.com/pydantic/pydantic/pull/6951)
- Replace almost_equal_floats with math.isclose by
[@&#8203;eumiro](https://togithub.com/eumiro) in
[#&#8203;7082](https://togithub.com/pydantic/pydantic/pull/7082)
- bump pydantic-core to 2.5.0 by
[@&#8203;davidhewitt](https://togithub.com/davidhewitt) in
[#&#8203;7077](https://togithub.com/pydantic/pydantic/pull/7077)
- Add `short_version` and use it in links by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;7115](https://togithub.com/pydantic/pydantic/pull/7115)
- πŸ“ Add usage link to `RootModel` by
[@&#8203;Kludex](https://togithub.com/Kludex) in
[#&#8203;7113](https://togithub.com/pydantic/pydantic/pull/7113)
- Revert "Fix default port for mongosrv DSNs
([#&#8203;6827](https://togithub.com/pydantic/pydantic/issues/6827))" by
[@&#8203;Kludex](https://togithub.com/Kludex) in
[#&#8203;7116](https://togithub.com/pydantic/pydantic/pull/7116)
- Clarify validate_default and \_Unset handling in usage docs and
migration guide by [@&#8203;benbenbang](https://togithub.com/benbenbang)
in [#&#8203;6950](https://togithub.com/pydantic/pydantic/pull/6950)
- Tweak documentation of `Field.exclude` by
[@&#8203;Viicos](https://togithub.com/Viicos) in
[#&#8203;7086](https://togithub.com/pydantic/pydantic/pull/7086)
- Do not require `validate_assignment` to use `Field.frozen` by
[@&#8203;Viicos](https://togithub.com/Viicos) in
[#&#8203;7103](https://togithub.com/pydantic/pydantic/pull/7103)
- tweaks to `_core_utils` by
[@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in
[#&#8203;7040](https://togithub.com/pydantic/pydantic/pull/7040)
- Make DefaultDict working with set by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;7126](https://togithub.com/pydantic/pydantic/pull/7126)
- Don't always require typing.Generic as a base for partially
parametrized models by [@&#8203;dmontagu](https://togithub.com/dmontagu)
in [#&#8203;7119](https://togithub.com/pydantic/pydantic/pull/7119)
- Fix issue with JSON schema incorrectly using parent class core schema
by [@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;7020](https://togithub.com/pydantic/pydantic/pull/7020)
- Fix xfailed test related to TypedDict and alias_generator by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6940](https://togithub.com/pydantic/pydantic/pull/6940)
- Improve error message for NameEmail by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6939](https://togithub.com/pydantic/pydantic/pull/6939)
- Fix generic computed fields by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;6988](https://togithub.com/pydantic/pydantic/pull/6988)
- Reflect namedtuple default values during validation by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;7144](https://togithub.com/pydantic/pydantic/pull/7144)
- Update dependencies, fix pydantic-core usage, fix CI issues by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;7150](https://togithub.com/pydantic/pydantic/pull/7150)
- Add mypy 1.5.0 by [@&#8203;hramezani](https://togithub.com/hramezani)
in [#&#8203;7118](https://togithub.com/pydantic/pydantic/pull/7118)
- Handle non-json native enum values by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;7056](https://togithub.com/pydantic/pydantic/pull/7056)
- document `round_trip` in Json type documentation by
[@&#8203;jc-louis](https://togithub.com/jc-louis) in
[#&#8203;7137](https://togithub.com/pydantic/pydantic/pull/7137)
- Relax signature checks to better support builtins and C extension
functions as validators by
[@&#8203;adriangb](https://togithub.com/adriangb) in
[#&#8203;7101](https://togithub.com/pydantic/pydantic/pull/7101)
- add union_mode='left_to_right' by
[@&#8203;davidhewitt](https://togithub.com/davidhewitt) in
[#&#8203;7151](https://togithub.com/pydantic/pydantic/pull/7151)
- Include an error message hint for inherited ordering by
[@&#8203;yvalencia91](https://togithub.com/yvalencia91) in
[#&#8203;7124](https://togithub.com/pydantic/pydantic/pull/7124)
- Fix one docs link and resolve some warnings for two others by
[@&#8203;dmontagu](https://togithub.com/dmontagu) in
[#&#8203;7153](https://togithub.com/pydantic/pydantic/pull/7153)
- Include Field extra keys name in warning by
[@&#8203;hramezani](https://togithub.com/hramezani) in
[#&#8203;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
renovate[bot] committed Aug 20, 2023
1 parent ab00356 commit 8202743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_dev.txt
Expand Up @@ -5,7 +5,7 @@ freezegun==1.2.2
mitmproxy==9.0.1
parameterized==0.9.0
pdoc==14.0.0
pydantic==2.1.1
pydantic==2.2.1
pytest==7.4.0
pytest-aiohttp==1.0.4
pytest-asyncio==0.21.1
Expand Down

0 comments on commit 8202743

Please sign in to comment.