From: Alex Waygood Date: Fri, 10 Nov 2023 16:00:50 +0000 (+0000) Subject: Bump mypy to 1.7.0 (#111961) X-Git-Tag: v3.13.0a2~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e7f0700800c0337a0b1b9471fcef410e3158250;p=thirdparty%2FPython%2Fcpython.git Bump mypy to 1.7.0 (#111961) --- diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 5f94b90ae09b..2ea93e610b08 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 8c51293cf665..591baac33c7e 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