◐ Shell
reader mode source ↗
Skip to content

gh-91162: Support substitution of TypeVar with an unpacked variable-size tuple#93330

Closed
serhiy-storchaka wants to merge 10 commits into
python:mainfrom
serhiy-storchaka:typing-subst-unpacked-vat-tuple
Closed

gh-91162: Support substitution of TypeVar with an unpacked variable-size tuple#93330
serhiy-storchaka wants to merge 10 commits into
python:mainfrom
serhiy-storchaka:typing-subst-unpacked-vat-tuple

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented May 29, 2022

Copy link
Copy Markdown
Member

For example:

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

#91162

…able-size tuple

For example:

  A[T, *Ts][*tuple[int, ...]] -> A[int, *tuple[int, ...]]
  A[*Ts, T][*tuple[int, ...]] -> A[*tuple[int, ...], int]
@serhiy-storchaka serhiy-storchaka added type-feature A feature request or enhancement needs backport to 3.11 only security fixes labels May 29, 2022
@serhiy-storchaka serhiy-storchaka changed the title gh-91162: Support substitution of TypeVar with an unpacked variable-size tuple May 29, 2022
@serhiy-storchaka serhiy-storchaka changed the title [WIP] gh-91162: Support substitution of TypeVar with an unpacked variable-size tuple May 29, 2022
@serhiy-storchaka serhiy-storchaka marked this pull request as ready for review May 29, 2022 18:49
@bedevere-bot bedevere-bot added awaiting merge and removed labels Jun 4, 2022
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

See also #93412.

@serhiy-storchaka serhiy-storchaka deleted the typing-subst-unpacked-vat-tuple branch June 12, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.11 only security fixes type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants