Skip to content

fix(deps): update dependency pydantic to v2

Oleg A. requested to merge renovate/pydantic-2.x into master

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
pydantic (changelog) ^1.8 -> ^2.0.0 age adoption passing confidence

Release Notes

pydantic/pydantic (pydantic)

v2.0.3

Compare Source

v2.0.2

Compare Source

See the full changelog here

v2.0.1

Compare Source

First patch release of Pydantic V2

See the full changelog here

v2.0

Compare Source

v1.10.11

Compare Source

  • Importing create_model in tools.py through relative path instead of absolute path - so that it doesn't import V2 code when copied over to V2 branch, #​6361 by @​SharathHuddar

v1.10.10

Compare Source

v1.10.9

Compare Source

v1.10.8

Compare Source

v1.10.7

Compare Source

  • Fix creating schema from model using ConstrainedStr with regex as 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_orm in their own classes, #​5187 by @​dmontagu
  • Fix InitVar usage with pydantic dataclasses, mypy version 1.1.1 and the custom mypy plugin, #​5162 by @​cdce8p

v1.10.6

Compare Source

  • Implement logic to support creating validators from non standard callables by using defaults to identify them and unwrapping functools.partial and functools.partialmethod when checking the signature, #​5126 by @​JensHeinrich
  • Fix mypy plugin for v1.1.1, and fix dataclass_transform decorator for pydantic dataclasses, #​5111 by @​cdce8p
  • Raise ValidationError, not ConfigError, when a discriminator value is unhashable, #​4773 by @​kurtmckee

v1.10.5

Compare Source

v1.10.4

Compare Source

v1.10.3

Compare Source

NOTE: v1.10.3 was "yanked" from PyPI due to #​4885 which is fixed in v1.10.4

v1.10.2

Compare Source

v1.10.1

Compare Source

  • Importing create_model in tools.py through relative path instead of absolute path - so that it doesn't import V2 code when copied over to V2 branch, #​6361 by @​SharathHuddar

v1.10.0

Compare Source

v1.9.2

Compare Source

Revert Breaking Change: v1.9.1 introduced a breaking change where model fields were deep copied by default, this release reverts the default behaviour to match v1.9.0 and before, while also allow deep-copy behaviour via copy_on_model_validation = 'deep'. See #​4092 for more information.

  • Allow for shallow copies of model fields, Config.copy_on_model_validation is now a str which must be 'none', 'deep', or 'shallow' corresponding to not copying, deep copy & shallow copy; default 'shallow', #​4093 by @​timkpaine

v1.9.1

Compare Source

Thank you to pydantic's sponsors: @​tiangolo, @​stellargraph, @​JonasKs, @​grillazz, @​Mazyod, @​kevinalh, @​chdsbd, @​povilasb, @​povilasb, @​jina-ai, @​mainframeindustries, @​robusta-dev, @​SendCloud, @​rszamszur, @​jodal, @​hardbyte, @​corleyma, @​daddycocoaman, @​Rehket, @​jokull, @​reillysiemens, @​westonsteimel, @​primer-io, @​koxudaxi, @​browniebroke, @​stradivari96, @​adriangb, @​kamalgill, @​jqueguiner, @​dev-zero, @​datarootsio, @​RedCarpetUp for their kind support.

v1.9.0

Compare Source

Thank you to pydantic's sponsors: @​sthagen, @​timdrijvers, @​toinbis, @​koxudaxi, @​ginomempin, @​primer-io, @​and-semakin, @​westonsteimel, @​reillysiemens, @​es3n1n, @​jokull, @​JonasKs, @​Rehket, @​corleyma, @​daddycocoaman, @​hardbyte, @​datarootsio, @​jodal, @​aminalaee, @​rafsaf, @​jqueguiner, @​chdsbd, @​kevinalh, @​Mazyod, @​grillazz, @​JonasKs, @​simw, @​leynier, @​xfenix for their kind support.

Highlights
v1.9.0 (2021-12-31) Changes
v1.9.0a2 (2021-12-24) Changes
v1.9.0a1 (2021-12-18) Changes

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 MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Oleg A.

Merge request reports