Skip to content

Commit

Permalink
Old union
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Dec 24, 2024
1 parent b55e4fb commit 2498f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/strategies/test_list_from_dict.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Tests for the list-from-dict strategy."""

from dataclasses import dataclass
from typing import TypedDict
from typing import TypedDict, Union

import pytest
from attrs import define, fields
Expand Down Expand Up @@ -29,7 +29,7 @@ class TypedDictA(TypedDict):

@pytest.mark.parametrize("cls", [AttrsA, DataclassA, TypedDictA])
def test_simple_roundtrip(
cls: type[AttrsA] | type[DataclassA], converter: BaseConverter
cls: Union[type[AttrsA], type[DataclassA]], converter: BaseConverter
):
hook, hook2 = configure_list_from_dict(list[cls], "a", converter)

Expand Down

0 comments on commit 2498f7c

Please sign in to comment.