8000 gh-91162: Support substitution of TypeVar with an unpacked variable-size tuple by serhiy-storchaka · Pull Request #93330 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

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

Closed
Prev Previous commit
Next Next commit
Merge branch 'main' into typing-subst-unpacked-vat-tuple
  • Loading branch information
serhiy-storchaka committed May 31, 2022
commit b497df5b8e9ad83650554ea6994918e234bd2282
3 changes: 3 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,9 @@ class C(Generic[*Ts]): pass
('generic[*Ts, T]', '[int]', 'generic[int]'),
('generic[*Ts, T]', '[int, str]', 'generic[int, str]'),
('generic[*Ts, T]', '[int, str, bool]', 'generic[int, str, bool]'),
('generic[*Ts, list[T]]', '[int]', 'generic[list[int]]'),
('generic[*Ts, list[T]]', '[int, str]', 'generic[int, list[str]]'),
('generic[*Ts, list[T]]', '[int, str, bool]', 'generic[int, str, list[bool]]'),

('generic[T, *Ts]', '[*tuple_type[int, ...]]', 'generic[int, *tuple_type[int, ...]]'),
('generic[*Ts, T]', '[*tuple_type[int, ...]]', 'generic[*tuple_type[int, ...], int]'),
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0