From 7762f5487096d942f82515da770690ab6bfee308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 22 Aug 2020 09:13:28 +0800 Subject: [PATCH] Removed the str type from the the parameter type hints in the accounting_amount and short_amount template filters in the accounting application. --- accounting/templatetags/accounting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/templatetags/accounting.py b/accounting/templatetags/accounting.py index 649b7f0..96abe62 100644 --- a/accounting/templatetags/accounting.py +++ b/accounting/templatetags/accounting.py @@ -53,7 +53,7 @@ def _format_positive_amount(value: Union[str, Decimal]) -> str: @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 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 -def short_amount(value: Union[str, Decimal]) -> str: +def short_amount(value: Union[Decimal]) -> str: """Formats an amount, groups every 3 digits by commas. Args: