[issue46643] typing.Annotated cannot wrap typing.ParamSpec args/kwargs

Serhiy Storchaka report at bugs.python.org
Tue Feb 8 02:54:44 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Should it? Annotated wraps types, and P.args/P.kwargs are not types.

If make Annotated accepting P.args/P.kwargs (and possible other non-types, e.g. P), it is a new feature which should be publicly discussed first and documented. I do not thing it requires a PEP.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46643>
_______________________________________


More information about the Python-bugs-list mailing list