Skip to content

Commit 2e7f070

Browse files
authored
Bump mypy to 1.7.0 (#111961)
1 parent d61313b commit 2e7f070

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Tools/clinic/clinic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,9 +3123,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
31233123
if not kwargs:
31243124
added_f = f
31253125
else:
3126-
# mypy's special-casing for functools.partial
3127-
# can't quite grapple with this code here
3128-
added_f = functools.partial(f, **kwargs) # type: ignore[arg-type]
3126+
added_f = functools.partial(f, **kwargs)
31293127
if format_unit:
31303128
legacy_converters[format_unit] = added_f
31313129
return f

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.6.1
3+
mypy==1.7.0
44

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

0 commit comments

Comments
 (0)