mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
Bump mypy to 1.7.0 (#111961)
This commit is contained in:
parent
d61313bdb1
commit
2e7f070080
|
@ -3123,9 +3123,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
|
|||
if not kwargs:
|
||||
added_f = f
|
||||
else:
|
||||
# mypy's special-casing for functools.partial
|
||||
# can't quite grapple with this code here
|
||||
added_f = functools.partial(f, **kwargs) # type: ignore[arg-type]
|
||||
added_f = functools.partial(f, **kwargs)
|
||||
if format_unit:
|
||||
legacy_converters[format_unit] = added_f
|
||||
return f
|
||||
|
|
|
@ -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.6.1
|
||||
mypy==1.7.0
|
||||
|
||||
# needed for peg_generator:
|
||||
types-psutil==5.9.5.17
|
||||
|
|
Loading…
Reference in a new issue