mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
[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 3473817106
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
7aa4038a6e
commit
8dc5df4e21
7 changed files with 2290 additions and 2295 deletions
|
@ -825,6 +825,7 @@ extern "C" {
|
|||
INIT_ID(__truediv__), \
|
||||
INIT_ID(__trunc__), \
|
||||
INIT_ID(__typing_is_unpacked_typevartuple__), \
|
||||
INIT_ID(__typing_prepare_subst__), \
|
||||
INIT_ID(__typing_subst__), \
|
||||
INIT_ID(__typing_unpacked_tuple_args__), \
|
||||
INIT_ID(__warningregistry__), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue