Skip to content

Commit 639b780

Browse files
chore(deps): update dependency pydantic to v2.1.0 (#46)
[![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.0.3` -> `==2.1.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydantic/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydantic/2.0.3/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic/2.0.3/2.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pydantic/pydantic (pydantic)</summary> ### [`v2.1.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v210-2023-07-25) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.0.3...v2.1.0) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.1.0) - Add `StringConstraints` for use as Annotated metadata by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6605](https://togithub.com/pydantic/pydantic/pull/6605) - Try to fix intermittently failing CI by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6683](https://togithub.com/pydantic/pydantic/pull/6683) - Remove redundant example of optional vs default. by [@&#8203;ehiggs-deliverect](https://togithub.com/ehiggs-deliverect) in [#&#8203;6676](https://togithub.com/pydantic/pydantic/pull/6676) - Docs update by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6692](https://togithub.com/pydantic/pydantic/pull/6692) - Remove the Validate always section in validator docs by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6679](https://togithub.com/pydantic/pydantic/pull/6679) - Fix recursion error in json schema generation by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6720](https://togithub.com/pydantic/pydantic/pull/6720) - Fix incorrect subclass check for secretstr by [@&#8203;AlexVndnblcke](https://togithub.com/AlexVndnblcke) in [#&#8203;6730](https://togithub.com/pydantic/pydantic/pull/6730) - update pdm / pdm lockfile to 2.8.0 by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6714](https://togithub.com/pydantic/pydantic/pull/6714) - unpin pdm on more CI jobs by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6755](https://togithub.com/pydantic/pydantic/pull/6755) - improve source locations for auxiliary packages in docs by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6749](https://togithub.com/pydantic/pydantic/pull/6749) - Assume builtins don't accept an info argument by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6754](https://togithub.com/pydantic/pydantic/pull/6754) - Fix bug where calling `help(BaseModelSubclass)` raises errors by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6758](https://togithub.com/pydantic/pydantic/pull/6758) - Fix mypy plugin handling of `@model_validator(mode="after")` by [@&#8203;ljodal](https://togithub.com/ljodal) in [#&#8203;6753](https://togithub.com/pydantic/pydantic/pull/6753) - update pydantic-core to 2.3.1 by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6756](https://togithub.com/pydantic/pydantic/pull/6756) - Mypy plugin for settings by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6760](https://togithub.com/pydantic/pydantic/pull/6760) - Use `contentSchema` keyword for JSON schema by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6715](https://togithub.com/pydantic/pydantic/pull/6715) - fast-path checking finite decimals by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6769](https://togithub.com/pydantic/pydantic/pull/6769) - Docs update by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6771](https://togithub.com/pydantic/pydantic/pull/6771) - Improve json schema doc by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6772](https://togithub.com/pydantic/pydantic/pull/6772) - Update validator docs by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6695](https://togithub.com/pydantic/pydantic/pull/6695) - Fix typehint for wrap validator by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6788](https://togithub.com/pydantic/pydantic/pull/6788) - 🐛 Fix validation warning for unions of Literal and other type by [@&#8203;lig](https://togithub.com/lig) in [#&#8203;6628](https://togithub.com/pydantic/pydantic/pull/6628) - Update documentation for generics support in V2 by [@&#8203;tpdorsey](https://togithub.com/tpdorsey) in [#&#8203;6685](https://togithub.com/pydantic/pydantic/pull/6685) - add pydantic-core build info to `version_info()` by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6785](https://togithub.com/pydantic/pydantic/pull/6785) - Fix pydantic dataclasses that use slots with default values by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6796](https://togithub.com/pydantic/pydantic/pull/6796) - Fix inheritance of hash function for frozen models by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6789](https://togithub.com/pydantic/pydantic/pull/6789) - ✨ Add `SkipJsonSchema` annotation by [@&#8203;Kludex](https://togithub.com/Kludex) in [#&#8203;6653](https://togithub.com/pydantic/pydantic/pull/6653) - Error if an invalid field name is used with Field by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6797](https://togithub.com/pydantic/pydantic/pull/6797) - Add `GenericModel` to `MOVED_IN_V2` by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6776](https://togithub.com/pydantic/pydantic/pull/6776) - Remove unused code from `docs/usage/types/custom.md` by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6803](https://togithub.com/pydantic/pydantic/pull/6803) - Fix `float` -> `Decimal` coercion precision loss by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6810](https://togithub.com/pydantic/pydantic/pull/6810) - remove email validation from the north star benchmark by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6816](https://togithub.com/pydantic/pydantic/pull/6816) - Fix link to mypy by [@&#8203;progsmile](https://togithub.com/progsmile) in [#&#8203;6824](https://togithub.com/pydantic/pydantic/pull/6824) - Improve initialization hooks example by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6822](https://togithub.com/pydantic/pydantic/pull/6822) - Fix default port for mongosrv DSNs by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6827](https://togithub.com/pydantic/pydantic/pull/6827) - Improve API documentation, in particular more links between usage and API docs by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6780](https://togithub.com/pydantic/pydantic/pull/6780) - update pydantic-core to 2.4.0 by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6831](https://togithub.com/pydantic/pydantic/pull/6831) - Fix `annotated_types.MaxLen` validator for custom sequence types by [@&#8203;ImogenBits](https://togithub.com/ImogenBits) in [#&#8203;6809](https://togithub.com/pydantic/pydantic/pull/6809) - Update V1 by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6833](https://togithub.com/pydantic/pydantic/pull/6833) - Make it so callable JSON schema extra works by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6798](https://togithub.com/pydantic/pydantic/pull/6798) - Fix serialization issue with `InstanceOf` by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6829](https://togithub.com/pydantic/pydantic/pull/6829) - Add back support for `json_encoders` by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6811](https://togithub.com/pydantic/pydantic/pull/6811) - Update field annotations when building the schema by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6838](https://togithub.com/pydantic/pydantic/pull/6838) - Use `WeakValueDictionary` to fix generic memory leak by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6681](https://togithub.com/pydantic/pydantic/pull/6681) - Add `config.defer_build` to optionally make model building lazy by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6823](https://togithub.com/pydantic/pydantic/pull/6823) - delegate `UUID` serialization to pydantic-core by [@&#8203;davidhewitt](https://togithub.com/davidhewitt) in [#&#8203;6850](https://togithub.com/pydantic/pydantic/pull/6850) - Update `json_encoders` docs by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6848](https://togithub.com/pydantic/pydantic/pull/6848) - Fix error message for `staticmethod`/`classmethod` order with validate_call by [@&#8203;dmontagu](https://togithub.com/dmontagu) in [#&#8203;6686](https://togithub.com/pydantic/pydantic/pull/6686) - Improve documentation for `Config` by [@&#8203;samuelcolvin](https://togithub.com/samuelcolvin) in [#&#8203;6847](https://togithub.com/pydantic/pydantic/pull/6847) - Update serialization doc to mention `Field.exclude` takes priority over call-time `include/exclude` by [@&#8203;hramezani](https://togithub.com/hramezani) in [#&#8203;6851](https://togithub.com/pydantic/pydantic/pull/6851) - Allow customizing core schema generation by making `GenerateSchema` public by [@&#8203;adriangb](https://togithub.com/adriangb) in [#&#8203;6737](https://togithub.com/pydantic/pydantic/pull/6737) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cloud-py-api/nc_py_api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 506958a commit 639b780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ install_requires =
3838
requests==2.31.0
3939
httpx==0.24.1
4040
xmltodict==0.13.0
41-
pydantic==2.0.3
41+
pydantic==2.1.0
4242
xxhash==3.2.0
4343
fastapi==0.100.0
4444
uvicorn[standard]==0.23.1

0 commit comments

Comments
 (0)