From 8e219d80068b98b3191a59e69c65b7d9f5a89d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 11 Mar 2023 19:07:43 +0800 Subject: [PATCH] Fixed the type hint of the form parameter in the NeedSomeJournalEntries validator. --- src/accounting/transaction/forms/currency.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/accounting/transaction/forms/currency.py b/src/accounting/transaction/forms/currency.py index 0af8aa5..c53e24b 100644 --- a/src/accounting/transaction/forms/currency.py +++ b/src/accounting/transaction/forms/currency.py @@ -52,8 +52,7 @@ class CurrencyExists: class NeedSomeJournalEntries: """The validator to check if there is any journal entry sub-form.""" - def __call__(self, form: TransferCurrencyForm, field: FieldList) \ - -> None: + def __call__(self, form: FlaskForm, field: FieldList) -> None: if len(field) == 0: raise ValidationError(lazy_gettext( "Please add some journal entries."))