Skip to content

Commit b38a4cb

Browse files
use non-legacy type in test_generic_union_type
1 parent 72bff0f commit b38a4cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_patma.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3461,8 +3461,7 @@ def test_patma_legacy_union_type(self):
34613461
self.assertIsNone(w)
34623462

34633463
def test_generic_union_type(self):
3464-
from typing import List
3465-
t = list[str] | List[str]
3464+
t = list[str] | set[str]
34663465
w = None
34673466
with self.assertRaises(TypeError):
34683467
match ["s"]:

0 commit comments

Comments
 (0)