[New-bugs-announce] [issue46581] _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with

Matt B report at bugs.python.org
Sun Jan 30 08:20:18 EST 2022


New submission from Matt B <eb3f73+python+org at yaymail.com>:

c55ff1b352f8b82184f80d9dea220e832691acfc was submitted to fix #44098 and added the _typevar_types and _paramspec_tvars properties to _GenericAlias. However, those properties continue to be omitted from _GenericAlias.copy_with[1].

Further, typing.py is fairly intricate, which makes it hard to understand if that is the only place those properties are absent. A more careful review/audit may be in order.

[1]: https://github.com/python/cpython/blob/8b1b27f1939cc4060531d198fdb09242f247ca7c/Lib/typing.py#L1069-L1070

----------
components: Library (Lib)
messages: 412144
nosy: posita
priority: normal
severity: normal
status: open
title: _typevar_types and _paramspec_tvars are missing from _GenericAlias.copy_with
versions: Python 3.10, Python 3.11

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


More information about the New-bugs-announce mailing list