mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
fix typing
This commit is contained in:
@@ -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]]]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user