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
# 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