8000 Two more cases · python/cpython@4e0435e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e0435e

Browse files
committed
Two more cases
1 parent 613159f commit 4e0435e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,8 @@ def test_typevartuple_specialization(self):
626626
self.assertEqual(Ts.__default__, Unpack[Tuple[str, int]])
627627
class A(Generic[T, Unpack[Ts]]): ...
628628
self.assertEqual(A[float].__args__, (float, str, int))
629+
self.assertEqual(A[float, range].__args__, (float, range))
630+
self.assertEqual(A[float, *tuple[int, ...]].__args__, (float, *tuple[int, ...]))
629631

630632
def test_typevartuple_none(self):
631633
U = TypeVarTuple('U')

0 commit comments

Comments
 (0)
0