fix: Fix union syntax

This commit is contained in:
nikolark committed 2025-05-30 16:17:45 +02:00
1 parent fbd55bd3a2
commit 2b1cdb28ea
1 file changed
+3 -3
+3 -3
View File
@@ -1,4 +1,4 @@
from typing import Annotated from typing import Annotated, Union
import strawberry import strawberry
from django.conf import settings from django.conf import settings
@@ -32,7 +32,7 @@ class InsufficientFunds(Error): # noqa: N818
CreateOrderResponse = Annotated[ CreateOrderResponse = Annotated[
CreateOrderSuccess | InsufficientFunds | FormErrors, strawberry.union("CreateOrderResponse") Union[CreateOrderSuccess, InsufficientFunds, FormErrors], strawberry.union("CreateOrderResponse") # noqa: UP007
] ]
@@ -100,7 +100,7 @@ class AboveMaxSaldo(Error): # noqa: N818
CreateDepositResponse = Annotated[ CreateDepositResponse = Annotated[
CreateDepositSuccess | AboveMaxSaldo | FormErrors, strawberry.union("CreateDepositResponse") Union[CreateDepositSuccess, AboveMaxSaldo, FormErrors], strawberry.union("CreateDepositResponse") # noqa: UP007
] ]