forked from CGM_Public/pretix_original
fix typing
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#
|
||||
import re
|
||||
from decimal import Decimal
|
||||
from typing import List, Optional, Tuple
|
||||
from typing import List, Optional, Tuple, Union
|
||||
|
||||
from django import forms
|
||||
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
|
||||
|
||||
|
||||
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]],
|
||||
collect_potential_discounts=None) -> List[Tuple[Decimal, Optional[Discount]]]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user