From 2e7f0700800c0337a0b1b9471fcef410e3158250 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 10 Nov 2023 16:00:50 +0000 Subject: [PATCH] Bump mypy to 1.7.0 (#111961) --- Tools/clinic/clinic.py | 4 +--- Tools/requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 5f94b90ae09..2ea93e610b0 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -3123,9 +3123,7 @@ def add_legacy_c_converter( if not kwargs: added_f = f else: - # mypy's special-casing for functools.partial - # can't quite grapple with this code here - added_f = functools.partial(f, **kwargs) # type: ignore[arg-type] + added_f = functools.partial(f, **kwargs) if format_unit: legacy_converters[format_unit] = added_f return f diff --git a/Tools/requirements-dev.txt b/Tools/requirements-dev.txt index 8c51293cf66..591baac33c7 100644 --- a/Tools/requirements-dev.txt +++ b/Tools/requirements-dev.txt @@ -1,6 +1,6 @@ # Requirements file for external linters and checks we run on # Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI -mypy==1.6.1 +mypy==1.7.0 # needed for peg_generator: types-psutil==5.9.5.17