This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Adopt ParamSpec
for type hints
#11711
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
PEP-612 adds
ParamSpec
, which will allow us to correctly annotate:cast
s.*args
and**kwargs
.mypy 0.931
(blocked on #11712)
As of mypy 0.931, basic
ParamSpec
usage is supported, plusP.args
andP.kwargs
. These styles of function can be annotated:Concatenate
anddef call(f: Callable[P, R], *args: P.args, some_flag: bool = False, **kwargs: P.kwargs)
(extra kwarg) don't work yet.The text was updated successfully, but these errors were encountered: