From 432b74e3d23b05b75fd000896fa51b93868ec83dbd7f486be3e6ad721e06cca0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 27 Mar 2023 10:02:30 +0000 Subject: [PATCH] - update to 1.10.7: * Fix creating schema from model using `ConstrainedStr` with `regex` as dict key * Address bug in mypy plugin caused by explicit_package_bases=True * Add implicit defaults in the mypy plugin for Field with no default argument * Fix schema generated for Enum values used as Literals in discriminated unions * Fix mypy failures caused by the pydantic mypy plugin when users define `from_orm` in their own classes * Fix `InitVar` usage with pydantic dataclasses, mypy version `1.1.1` and the custom mypy plugin * 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 * Fix mypy plugin for v1.1.1, and fix `dataclass_transform` decorator for pydantic dataclasses * Raise `ValidationError`, not `ConfigError`, when a discriminator value is unhashable * Fix broken parametrized bases handling with `GenericModel`s with complex sets of models * Invalidate mypy cache if plugin config changes * Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic * Fix `X | Y` union syntax breaking `GenericModel` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=32 --- pydantic-1.10.4.tar.gz | 3 --- pydantic-1.10.7.tar.gz | 3 +++ python-pydantic.changes | 31 +++++++++++++++++++++++++++++++ python-pydantic.spec | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) delete mode 100644 pydantic-1.10.4.tar.gz create mode 100644 pydantic-1.10.7.tar.gz diff --git a/pydantic-1.10.4.tar.gz b/pydantic-1.10.4.tar.gz deleted file mode 100644 index 92c80ad..0000000 --- a/pydantic-1.10.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99f7712a6641a0a262822cea09a14f927c6998b509039a041c984bf9d2544d5d -size 898916 diff --git a/pydantic-1.10.7.tar.gz b/pydantic-1.10.7.tar.gz new file mode 100644 index 0000000..7cc1d2e --- /dev/null +++ b/pydantic-1.10.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff346da03d333b055a2d432f50e2b5c452697a2881d6ff2302162d2525c7f145 +size 903379 diff --git a/python-pydantic.changes b/python-pydantic.changes index f38f75c..cc75e2a 100644 --- a/python-pydantic.changes +++ b/python-pydantic.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Mon Mar 27 10:00:20 UTC 2023 - Dirk Müller + +- update to 1.10.7: + * Fix creating schema from model using `ConstrainedStr` with + `regex` as dict key + * Address bug in mypy plugin caused by + explicit_package_bases=True + * Add implicit defaults in the mypy plugin for Field with no + default argument + * Fix schema generated for Enum values used as Literals in + discriminated unions + * Fix mypy failures caused by the pydantic mypy plugin when + users define `from_orm` in their own classes + * Fix `InitVar` usage with pydantic dataclasses, mypy version + `1.1.1` and the custom mypy plugin + * 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 + * Fix mypy plugin for v1.1.1, and fix `dataclass_transform` + decorator for pydantic dataclasses + * Raise `ValidationError`, not `ConfigError`, when a + discriminator value is unhashable + * Fix broken parametrized bases handling with `GenericModel`s + with complex sets of models + * Invalidate mypy cache if plugin config changes + * Fix `RecursionError` when deep-copying dataclass types + wrapped by pydantic + * Fix `X | Y` union syntax breaking `GenericModel` + ------------------------------------------------------------------- Thu Mar 16 07:18:03 UTC 2023 - Daniel Garcia diff --git a/python-pydantic.spec b/python-pydantic.spec index 1f0e4f5..7da4c20 100644 --- a/python-pydantic.spec +++ b/python-pydantic.spec @@ -19,7 +19,7 @@ %define skip_python2 1 Name: python-pydantic -Version: 1.10.4 +Version: 1.10.7 Release: 0 Summary: Data validation and settings management using python type hinting License: MIT