From ecb3d74675c0fc8a758e64f7a73cefc59416694a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Apr 2023 21:14:07 +0000 Subject: [PATCH] chore(deps-dev): Bump mypy from 1.0.1 to 1.2.0 Bumps [mypy](https://github.com/python/mypy) from 1.0.1 to 1.2.0. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.2.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- cl_sii/libs/dataclass_utils.py | 12 ++++++++++-- requirements-dev.in | 2 +- requirements-dev.txt | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/cl_sii/libs/dataclass_utils.py b/cl_sii/libs/dataclass_utils.py index 8bfa6053..71180ebd 100644 --- a/cl_sii/libs/dataclass_utils.py +++ b/cl_sii/libs/dataclass_utils.py @@ -91,8 +91,16 @@ def _dc_deep_compare_to(value_a: object, value_b: object) -> DcDeepComparison: return DcDeepComparison.EQUAL # Remove dataclass attributes whose value is None. - self_dict_clean = {k: v for k, v in dataclasses.asdict(value_a).items() if v is not None} - value_dict_clean = {k: v for k, v in dataclasses.asdict(value_b).items() if v is not None} + self_dict_clean = { + k: v + for k, v in dataclasses.asdict(value_a).items() # type: ignore[call-overload] + if v is not None + } + value_dict_clean = { + k: v + for k, v in dataclasses.asdict(value_b).items() # type: ignore[call-overload] + if v is not None + } if len(self_dict_clean) < len(value_dict_clean): for k, v in self_dict_clean.items(): diff --git a/requirements-dev.in b/requirements-dev.in index 99e34d84..4d35a800 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -9,7 +9,7 @@ bumpversion==0.5.3 coverage==7.1.0 flake8==6.0.0 isort==5.12.0 -mypy==1.0.1 +mypy==1.2.0 tox==3.25.1 twine==3.1.1 types-jsonschema==4.17.0.6 diff --git a/requirements-dev.txt b/requirements-dev.txt index 206dcd25..e8e8a3ed 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -53,9 +53,9 @@ keyring==21.4.0 # via twine mccabe==0.7.0 # via flake8 -mypy==1.0.1 +mypy==1.2.0 # via -r requirements-dev.in -mypy-extensions==0.4.3 +mypy-extensions==1.0.0 # via # black # mypy