Removed the str type from the the parameter type hints in the accounting_amount and short_amount template filters in the accounting application.
This commit is contained in:
parent
c29cc0f090
commit
7762f54870
@ -53,7 +53,7 @@ def _format_positive_amount(value: Union[str, Decimal]) -> str:
|
|||||||
|
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def accounting_amount(value: Union[str, Decimal]) -> str:
|
def accounting_amount(value: Union[Decimal]) -> str:
|
||||||
"""Formats an amount with the accounting notation, grouping every 3 digits
|
"""Formats an amount with the accounting notation, grouping every 3 digits
|
||||||
by commas, and marking negative numbers with brackets instead of signs.
|
by commas, and marking negative numbers with brackets instead of signs.
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ def accounting_amount(value: Union[str, Decimal]) -> str:
|
|||||||
|
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def short_amount(value: Union[str, Decimal]) -> str:
|
def short_amount(value: Union[Decimal]) -> str:
|
||||||
"""Formats an amount, groups every 3 digits by commas.
|
"""Formats an amount, groups every 3 digits by commas.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user