diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-06-12 13:22:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 13:22:01 (GMT) |
commit | 3473817106c23eca7341c931453da0341c367e1d (patch) | |
tree | 30da7b3dac3b1d203d9c7d9b684dce8857662aca /Include | |
parent | 23c9febdc6620c2ec5b6119d9016a8c92c25f350 (diff) | |
download | cpython-3473817106c23eca7341c931453da0341c367e1d.zip cpython-3473817106c23eca7341c931453da0341c367e1d.tar.gz cpython-3473817106c23eca7341c931453da0341c367e1d.tar.bz2 |
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]
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_global_strings.h | 1 | ||||
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h index cfa8ae9..ca97062 100644 --- a/Include/internal/pycore_global_strings.h +++ b/Include/internal/pycore_global_strings.h @@ -202,6 +202,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(__truediv__) STRUCT_FOR_ID(__trunc__) STRUCT_FOR_ID(__typing_is_unpacked_typevartuple__) + STRUCT_FOR_ID(__typing_prepare_subst__) STRUCT_FOR_ID(__typing_subst__) STRUCT_FOR_ID(__typing_unpacked_tuple_args__) STRUCT_FOR_ID(__warningregistry__) diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index 737507f..5e57ac6 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -824,6 +824,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__), \ |