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 closure(f: CConverterClassT) -> CConverterClassT: 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