⬆ Bump pydantic from 1.10.2 to 2.0.1
Bumps pydantic from 1.10.2 to 2.0.1.
Release notes
Sourced from pydantic's releases.
v2.0.1 2023-07-04
What's Changed
- 📝 Add note about Bump Pydantic by
@Kludexin pydantic/pydantic#6281- Parse Decimal in python to avoid precision loss by
@adriangbin pydantic/pydantic#6321- Fix typo of
model_parametrized_nameindocs/usage/models.mdby@hramezaniin pydantic/pydantic#6325- fix(docs): typo fix for docs by
@ozgurturkiyein pydantic/pydantic#6335- Allow
__modify_schema__to co-exist__get_pydantic_json_schema__by@adriangbin pydantic/pydantic#6334- Fix tagged unions multiple processing in submodels by
@suharnikovin pydantic/pydantic#6340- Unpack json schema refs for custom types by
@adriangbin pydantic/pydantic#6315- Fix typo in
create_modelfunction by@TimDiekmannin pydantic/pydantic#6347- Update README.md by
@weqopyin pydantic/pydantic#6363- Adding extra field via
setattradds field to model_extra by@aaraneyin pydantic/pydantic#6365- Fix
validate_callschema generation and doc error forTypedDictby@adriangbin pydantic/pydantic#6370- :memo: Include
Mac Addressdocumentation by@yezz123in pydantic/pydantic#6367- Remove warning from top of
docs/usage/types/encoded.mdby@hramezaniin pydantic/pydantic#6377- Remove datamodel code generator not working warning from doc by
@hramezaniin pydantic/pydantic#6378- Fix some uses of
Fieldinside ofAnnotatedby@adriangbin pydantic/pydantic#6373- 🔨 Include
pydantic-extra-typesto integration tests by@yezz123in pydantic/pydantic#6344- add davidhewitt to hooky respondents by
@davidhewittin pydantic/pydantic#6385- Update pydantic-core to 2.0.2 by
@adriangbin pydantic/pydantic#6389- 🐛 Don't call
repr()on qualname retrieval by@Kludexin pydantic/pydantic#6382- Warn instead of error protected namespace by
@dmontaguin pydantic/pydantic#6326- Do not recommend raising
TypeErrorin validators by@Viicosin pydantic/pydantic#6391- Test model_extra is None when extra='forbid' by
@dmontaguin pydantic/pydantic#6341- Remove --verbose flag from docs build to clean up CI logs by
@adriangbin pydantic/pydantic#6399- Add note about changes to regex engine used by
@adriangbin pydantic/pydantic#6400- Allow combining
Fieldannotations by merging them by@adriangbin pydantic/pydantic#6398- BaseSettings moved, not removed by
@tpdorseyin pydantic/pydantic#6401- Bind
validate_callto instance when decorating methods by@dmontaguin pydantic/pydantic#6406- 💚 Use "result" instead of "status" on GitHub Action conditional by
@Kludexin pydantic/pydantic#6410- Update models.md by
@dmontaguin pydantic/pydantic#6331- 🐛 Add
__hash__forWithJsonSchemaandExamplesby@Kludexin pydantic/pydantic#6414- 🐛 Fix generic tuple cannot have more than one item by
@ligin pydantic/pydantic#6384- Upate mypy plugin to consider pydantic-settings model by
@hramezaniin pydantic/pydantic#6396- Improve
BaseModel.__getattr__to raise a better error in case of AttributeError in model property by@hramezaniin pydantic/pydantic#6417- Fix issue where validate_call methods would break when accessed as a class attribute by
@dmontaguin pydantic/pydantic#6431- Update Pydantic V1 to 1.10.11 by
@hramezaniin pydantic/pydantic#6427- Rework how JSON schema refs get built/"simplified" by
@dmontaguin pydantic/pydantic#6402- Prepare for v2.0.1 by
@dmontaguin pydantic/pydantic#6433- 💚 Use
main-pv2FastAPI branch in integration tests by@ligin pydantic/pydantic#6432New Contributors
@ozgurturkiyemade their first contribution in pydantic/pydantic#6335@suharnikovmade their first contribution in pydantic/pydantic#6340@TimDiekmannmade their first contribution in pydantic/pydantic#6347@weqopymade their first contribution in pydantic/pydantic#6363@aaraneymade their first contribution in pydantic/pydantic#6365Full Changelog: https://github.com/pydantic/pydantic/compare/v2.0...v2.0.1
... (truncated)
Changelog
Sourced from pydantic's changelog.
v2.0.1 (2023-07-04)
First patch release of Pydantic V2
- Extra fields added via
setattr(i.e.m.some_extra_field = 'extra_value') are added to.model_extraifmodel_configextra='allowed'. Fixed #6333, #6365 by@aaraney- Automatically unpack JSON schema '$ref' for custom types, #6343 by
@adriangb- Fix tagged unions multiple processing in submodels, #6340 by
@suharnikovSee the full changelog here
v2.0 (2023-06-30)
Pydantic V2 is here! :tada:
See this post for more details.
See the full changelog here
v2.0b3 (2023-06-16)
Third beta pre-release of Pydantic V2
See the full changelog here
v2.0b2 (2023-06-03)
Add
from_attributesruntime flag toTypeAdapter.validate_pythonandBaseModel.model_validate.See the full changelog here
v2.0b1 (2023-06-01)
First beta pre-release of Pydantic V2
See the full changelog here
v2.0a4 (2023-05-05)
Fourth pre-release of Pydantic V2
See the full changelog here
v2.0a3 (2023-04-20)
Third pre-release of Pydantic V2
See the full changelog here
v2.0a2 (2023-04-12)
... (truncated)
Commits
53b1362💚 Usemain-pv2FastAPI branch in integration tests (#6432)05f3e6cPrepare for v2.0.1 (#6433)2a0f9e2Rework how JSON schema refs get built/"simplified" (#6402)e880e63Update Pydantic V1 to 1.10.11 (#6427)a6894f0Fix issue where validate_call methods would break when accessed as a class at...827f258ImproveBaseModel.__getattr__to raise a better error in case of AttributeE...89aa778Upate mypy plugin to consider pydantic-settings model (#6396)9b5643e🐛 Fix generic tuple cannot have more than one item (#6384)b095cd4🐛 Add__hash__forWithJsonSchemaandExamples(#6414)5aa8506Update models.md (#6331)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)