mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Bump mypy to 1.7.0 (#111961)
This commit is contained in:
parent
d61313bdb1
commit
2e7f070080
2 changed files with 2 additions and 4 deletions
|
@ -3123,9 +3123,7 @@ def add_legacy_c_converter(
|
||||||
if not kwargs:
|
if not kwargs:
|
||||||
added_f = f
|
added_f = f
|
||||||
else:
|
else:
|
||||||
# mypy's special-casing for functools.partial
|
added_f = functools.partial(f, **kwargs)
|
||||||
# can't quite grapple with this code here
|
|
||||||
added_f = functools.partial(f, **kwargs) # type: ignore[arg-type]
|
|
||||||
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.6.1
|
mypy==1.7.0
|
||||||
|
|
||||||
# needed for peg_generator:
|
# needed for peg_generator:
|
||||||
types-psutil==5.9.5.17
|
types-psutil==5.9.5.17
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue