Skip to content

Commit

Permalink
CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (python#125592
Browse files Browse the repository at this point in the history
)

* Bump mypy to 1.12 & Python to 3.13

* Remove unnecessary `type: ignore`
  • Loading branch information
Eclips4 authored Oct 16, 2024
1 parent e4d90be commit d83fcf8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions Tools/clinic/libclinic/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
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
Expand Down
2 changes: 1 addition & 1 deletion Tools/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d83fcf8

Please sign in to comment.