mirror of https://github.com/python/cpython
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`
This commit is contained in:
parent
e4d90be845
commit
d83fcf8371
|
@ -53,7 +53,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.13"
|
||||||
cache: pip
|
cache: pip
|
||||||
cache-dependency-path: Tools/requirements-dev.txt
|
cache-dependency-path: Tools/requirements-dev.txt
|
||||||
- run: pip install -r Tools/requirements-dev.txt
|
- run: pip install -r Tools/requirements-dev.txt
|
||||||
|
|
|
@ -545,9 +545,7 @@ def add_legacy_c_converter(
|
||||||
if not kwargs:
|
if not kwargs:
|
||||||
added_f = f
|
added_f = f
|
||||||
else:
|
else:
|
||||||
# type ignore due to a mypy regression :(
|
added_f = functools.partial(f, **kwargs)
|
||||||
# https://github.com/python/mypy/issues/17646
|
|
||||||
added_f = functools.partial(f, **kwargs) # type: ignore[misc]
|
|
||||||
if format_unit:
|
if format_unit:
|
||||||
legacy_converters[format_unit] = added_f
|
legacy_converters[format_unit] = added_f
|
||||||
return f
|
return f
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Requirements file for external linters and checks we run on
|
# Requirements file for external linters and checks we run on
|
||||||
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
|
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
|
||||||
mypy==1.11.2
|
mypy==1.12
|
||||||
|
|
||||||
# needed for peg_generator:
|
# needed for peg_generator:
|
||||||
types-psutil==6.0.0.20240901
|
types-psutil==6.0.0.20240901
|
||||||
|
|
Loading…
Reference in New Issue