summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-10-16 14:27:19 (GMT)
committerGitHub <noreply@github.com>2024-10-16 14:27:19 (GMT)
commitd83fcf8371f2f33c7797bc8f5423a8bca8c46e5c (patch)
tree98f70749344607a8ce03ce5f1983a0ed3a46814e
parente4d90be84536746a966478acc4c0cf43a201f492 (diff)
downloadcpython-d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c.zip
cpython-d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c.tar.gz
cpython-d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c.tar.bz2
CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)
* Bump mypy to 1.12 & Python to 3.13 * Remove unnecessary `type: ignore`
-rw-r--r--.github/workflows/mypy.yml2
-rw-r--r--Tools/clinic/libclinic/converter.py4
-rw-r--r--Tools/requirements-dev.txt2
3 files changed, 3 insertions, 5 deletions
diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml
index 1b2d998..e5b0530 100644
--- a/.github/workflows/mypy.yml
+++ b/.github/workflows/mypy.yml
@@ -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
diff --git a/Tools/clinic/libclinic/converter.py b/Tools/clinic/libclinic/converter.py
index 2abf06d..86853bb 100644
--- a/Tools/clinic/libclinic/converter.py
+++ b/Tools/clinic/libclinic/converter.py
@@ -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
diff --git a/Tools/requirements-dev.txt b/Tools/requirements-dev.txt
index 408a9ea..57f0b98 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.11.2
+mypy==1.12
# needed for peg_generator:
types-psutil==6.0.0.20240901