]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 1 Nov 2022 18:14:38 +0000 (20:14 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 18:14:38 +0000 (20:14 +0200)
commit9ca7b1561f8a298a1d5917dcaae5a654ac0766b1
tree4b732696335b3e4c9fb3a257071a7e1da06770d5
parent8648c06b9b87a254f2560098267324530b22c102
[3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) (GH-98969)

Fix subscription of types.GenericAlias instances containing bare generic types:
for example tuple[A, T][int], where A is a generic type, and T is a type
variable.
Lib/_collections_abc.py
Lib/test/test_typing.py
Misc/NEWS.d/next/Core and Builtins/2022-10-31-21-01-35.gh-issue-98852.MYaRN6.rst [new file with mode: 0644]
Objects/genericaliasobject.c