Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-91162: Support splitting of unpacked arbitrary-length tuple over TypeVar and TypeVarTuple parameters (alt) #93412

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 1, 2022

For example:

  • A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
  • A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]

#91162

It is an alternative of #93330.

@serhiy-storchaka serhiy-storchaka force-pushed the typing-subst-unpacked-var-tuple2 branch from 7ca771f to a7efb91 Compare Jun 5, 2022
@serhiy-storchaka serhiy-storchaka merged commit 3473817 into python:main Jun 12, 2022
13 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 12, 2022

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖

@serhiy-storchaka serhiy-storchaka deleted the typing-subst-unpacked-var-tuple2 branch Jun 12, 2022
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>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jun 12, 2022

GH-93746 is a backport of this pull request to the 3.11 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants