Skip to content

Commit

Permalink
Rewrite test to support python <= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
enoua5 committed May 31, 2024
1 parent 99cc745 commit d6c58ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/schema/test_union.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ class UnionObjectQueries(Generic[T, U]):
@strawberry.field
def by_id(
self, id: strawberry.ID
) -> T | Annotated[U | NotFoundError, strawberry.union("ByIdResult")]: ...
) -> Union[
T, Annotated[Union[U, NotFoundError], strawberry.union("ByIdResult")]
]: ...

@strawberry.type
class Query:
Expand Down

0 comments on commit d6c58ed

Please sign in to comment.