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 6c0c603 commit 31328baCopy full SHA for 31328ba
src/test_typing_extensions.py
@@ -5376,9 +5376,15 @@ class MyClass: ...
5376
@skipUnless(TYPING_3_10_0, "Concatenate not available in <3.10")
5377
def test_typing_compatibility(self):
5378
P = ParamSpec('P')
5379
- C = Concatenate[int, P][typing.Concatenate[int, P]]
5380
- self.assertEqual(C, Concatenate[int, int, P])
5381
- self.assertEqual(get_args(C), (int, int, P))
+ C1 = Concatenate[int, P][typing.Concatenate[int, P]]
+ self.assertEqual(C1, Concatenate[int, int, P])
+ self.assertEqual(get_args(C1), (int, int, P))
5382
+
5383
+ C2 = typing.Concatenate[int, P][Concatenate[int, P]]
5384
+ with self.subTest("typing compatibility with typing_extensions"):
5385
+ if sys.version_info < (3, 10, 3):
5386
+ self.skipTest("Unpacking not introduced until 3.10.3")
5387
+ self.assertEqual(get_args(C2), (int, int, P))
5388
5389
def test_valid_uses(self):
5390
0 commit comments