gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar and TypeVarTuple parameters (alt) by serhiy-storchaka · Pull Request #93412 · python/cpython

Conversation

serhiy-storchaka

…able-size tuple

For example:

  A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
  A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
… into typing-subst-unpacked-vat-tuple

JelleZijlstra

miss-islington pushed a commit to miss-islington/cpython that referenced this issue

Jun 12, 2022
…over TypeVar and TypeVarTuple parameters (alt) (pythonGH-93412)

For example:

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

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>