]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar and TypeV...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 12 Jun 2022 13:22:01 +0000 (16:22 +0300)
committerGitHub <noreply@github.com>
Sun, 12 Jun 2022 13:22:01 +0000 (16:22 +0300)
commit3473817106c23eca7341c931453da0341c367e1d
tree30da7b3dac3b1d203d9c7d9b684dce8857662aca
parent23c9febdc6620c2ec5b6119d9016a8c92c25f350
gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar and TypeVarTuple parameters (alt) (GH-93412)

For example:

  A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
  A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
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