[issue44796] Add __parameters__ and __getitem__ in TypeVar and ParamSpec
Serhiy Storchaka
report at bugs.python.org
Sat Mar 12 08:54:12 EST 2022
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
PR 31143 simplified some code without changing the common API:
Objects/genericaliasobject.c | 46 ++++++++++++++--------------------------------
1 file changed, 14 insertions(+), 32 deletions(-)
Lib/_collections_abc.py | 63 +++++++++------------------------------------------------------
1 file changed, 9 insertions(+), 54 deletions(-)
PR 27511 will simplify it even more:
Objects/genericaliasobject.c | 60 ++++++++++++++++++------------------------------------------
1 file changed, 18 insertions(+), 42 deletions(-)
(Lib/typing.py will be simplified too, even if this does not reduce the number of lines).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44796>
_______________________________________
More information about the Python-bugs-list
mailing list