Message393373
``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). |
|
Date |
User |
Action |
Args |
2021-05-10 09:41:36 | kj | set | recipients:
+ kj, gvanrossum, levkivskyi |
2021-05-10 09:41:35 | kj | set | messageid: <1620639695.98.0.0136931922016.issue44098@roundup.psfhosted.org> |
2021-05-10 09:41:35 | kj | link | issue44098 messages |
2021-05-10 09:41:35 | kj | create | |
|