]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98852: Fix subscription of type aliases (GH-98920)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 1 Nov 2022 07:33:09 +0000 (09:33 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 07:33:09 +0000 (09:33 +0200)
commit0e15c31c7e9907fdbe38a3f419b669fed5bb3b33
tree14a32e4a22f2b236624cbbb21a278e3bffc8bad3
parentf5afb7f2331efa8f64080576a75517c3a96442b9
gh-98852: Fix subscription of type aliases (GH-98920)

Fix subscription of type aliases containing bare generic types or types
like TypeVar: for example tuple[A, T][int] and tuple[TypeVar, T][int],
where A is a generic type, and T is a type variable.
Lib/test/test_typing.py
Lib/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