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 2340770 commit 052f885Copy full SHA for 052f885
Lib/test/test_patma.py
@@ -3470,8 +3470,8 @@ def test_patma_legacy_union_type(self):
3470
self.assertIsNone(w)
3471
3472
def test_generic_union_type(self):
3473
- from typing import List
3474
- t = list[str] | List[str]
+ from collections.abc import Sequence, Set
+ t = Sequence[str] | Set[str]
3475
w = None
3476
with self.assertRaises(TypeError):
3477
match ["s"]:
0 commit comments