From d6c58ed65fb3b0ae6dce1f42bf9d5d72716310f9 Mon Sep 17 00:00:00 2001 From: Iota Date: Thu, 30 May 2024 21:08:41 -0600 Subject: [PATCH] Rewrite test to support python <= 3.9 --- tests/schema/test_union.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/schema/test_union.py b/tests/schema/test_union.py index 1aa13d5990..67c26949e9 100644 --- a/tests/schema/test_union.py +++ b/tests/schema/test_union.py @@ -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: