]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Jun 2022 18:15:56 +0000 (11:15 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Jun 2022 18:15:56 +0000 (21:15 +0300)
commit8dc5df4e21964ec746634cd19d4ffe60acf5e0f6
treecbfa1272b1882a7e040f101c7ae69b8c7ec4401b
parent7aa4038a6e3c7dca0086eeaf4bcb7c952997f213
[3.11] gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar and TypeVarTuple parameters (alt) (GH-93412) (GH-93746)

For example:

  A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
  A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
(cherry picked from commit 3473817106c23eca7341c931453da0341c367e1d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/data/python3.11.abi
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init.h
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-06-01-11-24-13.gh-issue-91162.NxvU_u.rst [new file with mode: 0644]
Objects/genericaliasobject.c