Skip to content

Commit 767f5dc

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

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
@@ -3461,8 +3461,8 @@ 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+
from collections.abc import Sequence, Set
3465+
t = Sequence[str] | Set[str]
34663466
w = None
34673467
with self.assertRaises(TypeError):
34683468
match ["s"]:

0 commit comments

Comments
 (0)