fix typing

This commit is contained in:
Mira Weller
2024-07-18 21:31:50 +02:00
parent e18c699529
commit 9cb708cf6f

View File

@@ -21,7 +21,7 @@
# #
import re import re
from decimal import Decimal from decimal import Decimal
from typing import List, Optional, Tuple from typing import List, Optional, Tuple, Union
from django import forms from django import forms
from django.db.models import Q from django.db.models import Q
@@ -156,7 +156,7 @@ def get_line_price(price_after_voucher: Decimal, custom_price_input: Decimal, cu
return price return price
def apply_discounts(event: Event, sales_channel: str | SalesChannel, def apply_discounts(event: Event, sales_channel: Union[str, SalesChannel],
positions: List[Tuple[int, Optional[int], Decimal, bool, bool, Decimal]], positions: List[Tuple[int, Optional[int], Decimal, bool, bool, Decimal]],
collect_potential_discounts=None) -> List[Tuple[Decimal, Optional[Discount]]]: collect_potential_discounts=None) -> List[Tuple[Decimal, Optional[Discount]]]:
""" """