We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea63d4 commit 27980f1Copy full SHA for 27980f1
Lib/test/test_types.py
@@ -670,7 +670,8 @@ def test_union_parameter_chaining(self):
670
T = typing.TypeVar("T")
671
672
self.assertEqual((float | list[T])[int], float | list[int])
673
-
+self.assertEqual(list[int | list[T]].__parameters__, (T,))
674
+self.assertEqual(list[int | list[T]][str], list[int | list[str]])
675
def test_or_type_operator_with_forward(self):
676
T = typing.TypeVar('T')
677
ForwardAfter = T | 'Forward'
0 commit comments