Skip to content

Commit 27980f1

Browse files
Update Lib/test/test_types.py
Co-authored-by: Ken Jin <[email protected]>
1 parent cea63d4 commit 27980f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,8 @@ def test_union_parameter_chaining(self):
670670
T = typing.TypeVar("T")
671671

672672
self.assertEqual((float | list[T])[int], float | list[int])
673-
673+
self.assertEqual(list[int | list[T]].__parameters__, (T,))
674+
self.assertEqual(list[int | list[T]][str], list[int | list[str]])
674675
def test_or_type_operator_with_forward(self):
675676
T = typing.TypeVar('T')
676677
ForwardAfter = T | 'Forward'

0 commit comments

Comments
 (0)