Skip to content

Commit 052f885

Browse files
use non-legacy type in test_generic_union_type
1 parent 2340770 commit 052f885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_patma.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,8 +3470,8 @@ def test_patma_legacy_union_type(self):
34703470
self.assertIsNone(w)
34713471

34723472
def test_generic_union_type(self):
3473-
from typing import List
3474-
t = list[str] | List[str]
3473+
from collections.abc import Sequence, Set
3474+
t = Sequence[str] | Set[str]
34753475
w = None
34763476
with self.assertRaises(TypeError):
34773477
match ["s"]:

0 commit comments

Comments
 (0)