]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Wed, 16 Oct 2024 14:27:19 +0000 (17:27 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Oct 2024 14:27:19 +0000 (14:27 +0000)
* Bump mypy to 1.12 & Python to 3.13

* Remove unnecessary `type: ignore`

.github/workflows/mypy.yml
Tools/clinic/libclinic/converter.py
Tools/requirements-dev.txt

index 1b2d998182e0f746b6be112b0186d7bda1ffb4a2..e5b05302b5ac2712a5ab1084aaaea39a2bc1eec1 100644 (file)
@@ -53,7 +53,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v5
         with:
-          python-version: "3.11"
+          python-version: "3.13"
           cache: pip
           cache-dependency-path: Tools/requirements-dev.txt
       - run: pip install -r Tools/requirements-dev.txt
index 2abf06dc4e89a2e39e2dbff2e6e8ada524f42670..86853bb4fba25327b6783bc7e84cb5a696f09d57 100644 (file)
@@ -545,9 +545,7 @@ def add_legacy_c_converter(
         if not kwargs:
             added_f = f
         else:
-            # type ignore due to a mypy regression :(
-            # https://github.com/python/mypy/issues/17646
-            added_f = functools.partial(f, **kwargs)  # type: ignore[misc]
+            added_f = functools.partial(f, **kwargs)
         if format_unit:
             legacy_converters[format_unit] = added_f
         return f
index 408a9ea6607f9e2d65918fdf01d65d968c687bc7..57f0b982b00f5dfc46be148bc6d69908f112d36c 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.11.2
+mypy==1.12
 
 # needed for peg_generator:
 types-psutil==6.0.0.20240901