This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kj
Recipients gvanrossum, kj, levkivskyi
Date 2021-05-10.09:41:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620639695.98.0.0136931922016.issue44098@roundup.psfhosted.org>
In-reply-to
Content
``typing.List`` includes ``ParamSpec`` in ``__parameters__`` but the builtin ``list`` doesn't. The behavior of the latter is correct, as PEP 612 states that: "As before, parameters_expressions by themselves are not acceptable in places where a type is expected".

https://www.python.org/dev/peps/pep-0612/#valid-use-locations

This patch just makes the typing version same as the builtin version by excluding ``ParamSpec`` from ``__parameters__`` (except for Concatenate, Callable, and Generic).
History
Date User Action Args
2021-05-10 09:41:36kjsetrecipients: + kj, gvanrossum, levkivskyi
2021-05-10 09:41:35kjsetmessageid: <1620639695.98.0.0136931922016.issue44098@roundup.psfhosted.org>
2021-05-10 09:41:35kjlinkissue44098 messages
2021-05-10 09:41:35kjcreate