Skip to content

Commit 0b78801

Browse files
serhiy-storchakapablogsal
authored andcommitted
pythongh-91162: Fix substitution of unpacked tuples in generic aliases (pythonGH-92335)
(cherry picked from commit 9d25db9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent b425d88 commit 0b78801

File tree

5 files changed

+211
-145
lines changed

5 files changed

+211
-145
lines changed

Include/internal/pycore_global_strings.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ struct _Py_global_strings {
201201
STRUCT_FOR_ID(__subclasshook__)
202202
STRUCT_FOR_ID(__truediv__)
203203
STRUCT_FOR_ID(__trunc__)
204+
STRUCT_FOR_ID(__typing_is_unpacked_typevartuple__)
204205
STRUCT_FOR_ID(__typing_subst__)
205-
STRUCT_FOR_ID(__typing_unpacked__)
206+
STRUCT_FOR_ID(__typing_unpacked_tuple_args__)
206207
STRUCT_FOR_ID(__warningregistry__)
207208
STRUCT_FOR_ID(__weakref__)
208209
STRUCT_FOR_ID(__xor__)

Include/internal/pycore_runtime_init.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,9 @@ extern "C" {
824824
INIT_ID(__subclasshook__), \
825825
INIT_ID(__truediv__), \
826826
INIT_ID(__trunc__), \
827+
INIT_ID(__typing_is_unpacked_typevartuple__), \
827828
INIT_ID(__typing_subst__), \
828-
INIT_ID(__typing_unpacked__), \
829+
INIT_ID(__typing_unpacked_tuple_args__), \
829830
INIT_ID(__warningregistry__), \
830831
INIT_ID(__weakref__), \
831832
INIT_ID(__xor__), \

0 commit comments

Comments
 (0)