]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061)
authorMatt Bogosian <matt@bogosian.net>
Thu, 10 Mar 2022 14:42:15 +0000 (08:42 -0600)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 14:42:15 +0000 (16:42 +0200)
commit32bf3597922ac3f613989582afa2bff43bea8a2f
tree021eab024d0936c9e682af8adebdf1123d83f0e1
parent9b51fd5d137b662c940f072297b30815f37f105b
bpo-46581: Propagate private vars via _GenericAlias.copy_with (GH-31061)

GH-26091 added the _typevar_types and _paramspec_tvars instance
variables to _GenericAlias. However, they were not propagated
consistently. This commit addresses the most prominent deficiency
identified in bpo-46581 (namely their absence from
_GenericAlias.copy_with), but there could be others.

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/ACKS
Misc/NEWS.d/next/Library/2022-02-01-11-32-47.bpo-46581.t7Zw65.rst [new file with mode: 0644]