]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bump mypy to 1.7.0 (#111961)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 10 Nov 2023 16:00:50 +0000 (16:00 +0000)
committerGitHub <noreply@github.com>
Fri, 10 Nov 2023 16:00:50 +0000 (16:00 +0000)
Tools/clinic/clinic.py
Tools/requirements-dev.txt

index 5f94b90ae09bd0eff208dfcff0ad8df35de216bf..2ea93e610b086b1ad0b578c06035c67b53420e6d 100755 (executable)
@@ -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
index 8c51293cf665c7de33df82a5706ec9c5e433b95c..591baac33c7e8fd7c4c68a4d6ad8dd68efe4a344 100644 (file)
@@ -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