Skip to content

Commit 2498f7c

Browse files
committed
Old union
1 parent b55e4fb commit 2498f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/strategies/test_list_from_dict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Tests for the list-from-dict strategy."""
22

33
from dataclasses import dataclass
4-
from typing import TypedDict
4+
from typing import TypedDict, Union
55

66
import pytest
77
from attrs import define, fields
@@ -29,7 +29,7 @@ class TypedDictA(TypedDict):
2929

3030
@pytest.mark.parametrize("cls", [AttrsA, DataclassA, TypedDictA])
3131
def test_simple_roundtrip(
32-
cls: type[AttrsA] | type[DataclassA], converter: BaseConverter
32+
cls: Union[type[AttrsA], type[DataclassA]], converter: BaseConverter
3333
):
3434
hook, hook2 = configure_list_from_dict(list[cls], "a", converter)
3535

0 commit comments

Comments
 (0)