Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd83fcf8

Browse files
authored
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`
1 parente4d90be commitd83fcf8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

‎.github/workflows/mypy.yml‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
545545
ifnotkwargs:
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
ifformat_unit:
552550
legacy_converters[format_unit]=added_f
553551
returnf

‎Tools/requirements-dev.txt‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp