Disthon
Disthon copied to clipboard
Update pydantic requirement from ~=1.9.1 to ~=1.10.8
Updates the requirements on pydantic to permit the latest version.
Changelog
Sourced from pydantic's changelog.
v1.10.8 (2023-05-23)
- Fix a bug in
Literalusage withtyping-extension==4.6.0, #5826 by@hramezani- This solves the (closed) issue #3849 where aliased fields that use discriminated union fail to validate when the data contains the non-aliased field name, #5736 by
@benwah- Update email-validator dependency to >=2.0.0post2, #5627 by
@adriangb- update
AnyClassMethodfor changes in python/typeshed#9771, #5505 by@ITProKylev2.0a1 (2023-04-03)
First pre-release of Pydantic V2!
See this post for more details.
v1.10.7 (2023-03-22)
- Fix creating schema from model using
ConstrainedStrwithregexas dict key, #5223 by@matejetz- Address bug in mypy plugin caused by explicit_package_bases=True, #5191 by
@dmontagu- Add implicit defaults in the mypy plugin for Field with no default argument, #5190 by
@dmontagu- Fix schema generated for Enum values used as Literals in discriminated unions, #5188 by
@javibookline- Fix mypy failures caused by the pydantic mypy plugin when users define
from_ormin their own classes, #5187 by@dmontagu- Fix
InitVarusage with pydantic dataclasses, mypy version1.1.1and the custom mypy plugin, #5162 by@cdce8pv1.10.6 (2023-03-08)
- Implement logic to support creating validators from non standard callables by using defaults to identify them and unwrapping
functools.partialandfunctools.partialmethodwhen checking the signature, #5126 by@JensHeinrich- Fix mypy plugin for v1.1.1, and fix
dataclass_transformdecorator for pydantic dataclasses, #5111 by@cdce8p- Raise
ValidationError, notConfigError, when a discriminator value is unhashable, #4773 by@kurtmckeev1.10.5 (2023-02-15)
- Fix broken parametrized bases handling with
GenericModels with complex sets of models, #5052 by@MarkusSintonen- Invalidate mypy cache if plugin config changes, #5007 by
@cdce8p- Fix
RecursionErrorwhen deep-copying dataclass types wrapped by pydantic, #4949 by@mbillingr- Fix
X | Yunion syntax breakingGenericModel, #4146 by@thenx- Switch coverage badge to show coverage for this branch/release, #5060 by
@samuelcolvinv1.10.4 (2022-12-30)
- Change dependency to
typing-extensions>=4.2.0, #4885 by@samuelcolvinv1.10.3 (2022-12-29)
NOTE: v1.10.3 was "yanked" from PyPI due to #4885 which is fixed in v1.10.4
- fix parsing of custom root models, #4883 by
@gou177- fix: use dataclass proxy for frozen or empty dataclasses, #4878 by
@PrettyWood- Fix
schemaandschema_jsonon models where a model instance is a one of default values, #4781 by@Bobronium- Add Jina AI to sponsors on docs index page, #4767 by
@samuelcolvin- fix: support assignment on
DataclassProxy, #4695 by@PrettyWood- Add
postgresql+psycopgas allowed scheme forPostgreDsnto make it usable with SQLAlchemy 2, #4689 by@morian
... (truncated)
Commits
77e3ac7remove sponsors from docs (#5833)afadf00Prepare for 1.10.8 (#5830)c6e4d21V1 addbuild-docs.sh(#5832)c4d3deeFix Literal bug with typing-extension==4.6.0 (#5826)12ba3f4enable fastapi testing on 1.10 (#5635)d61792cFixes discriminated unions not working on aliased literal fields. Issue #3849...8131196Support for email-validator>=2.0.0.post2 (#5627)40dafc4Add mike to V1 docs (#5628)9367abdfix link in alpha release to v2 blog5cfedf2updateAnyClassMethodfor change in python/typeshed#9771 (#5505)- 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)