Skip to content

Commit 672796e

Browse files
Eclips4ebonnal
authored andcommittedJan 10, 2025
CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (python#125592)
* Bump mypy to 1.12 & Python to 3.13 * Remove unnecessary `type: ignore`
1 parent c488e5c commit 672796e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed
 

‎.github/workflows/mypy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/checkout@v4
5454
- uses: actions/setup-python@v5
5555
with:
56-
python-version: "3.11"
56+
python-version: "3.13"
5757
cache: pip
5858
cache-dependency-path: Tools/requirements-dev.txt
5959
- run: pip install -r Tools/requirements-dev.txt

‎Tools/clinic/libclinic/converter.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
545545
if not kwargs:
546546
added_f = f
547547
else:
548-
# type ignore due to a mypy regression :(
549-
# https://github.com/python/mypy/issues/17646
550-
added_f = functools.partial(f, **kwargs) # type: ignore[misc]
548+
added_f = functools.partial(f, **kwargs)
551549
if format_unit:
552550
legacy_converters[format_unit] = added_f
553551
return f

‎Tools/requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Requirements file for external linters and checks we run on
22
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
3-
mypy==1.11.2
3+
mypy==1.12
44

55
# needed for peg_generator:
66
types-psutil==6.0.0.20240901

0 commit comments

Comments
 (0)