Skip to content

Commit

Permalink
Fix union syntax in test
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Dec 25, 2024
1 parent b02658a commit a69fc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,11 +1577,11 @@ def test_avoid_subcommands_with_generics() -> None:

@dataclasses.dataclass(frozen=True)
class Person(Generic[T]):
field: T | bool
field: Union[T, bool]

@dataclasses.dataclass
class Train:
person: Person[int] | Person[bool] | Person[str] | Person[float] = Person(
person: Union[Person[int], Person[bool], Person[str], Person[float]] = Person(
"hello"
)

Expand Down

0 comments on commit a69fc93

Please sign in to comment.