From 1d16b250d8927b63082d6d09039a9ff2fb7ec0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 8 Dec 2022 01:06:15 +0800 Subject: [PATCH] Revised the documentation. --- src/accounting/utils.py | 15 ++++++--------- src/mia_core/utils.py | 3 +-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/accounting/utils.py b/src/accounting/utils.py index d32aa7d..19610ad 100644 --- a/src/accounting/utils.py +++ b/src/accounting/utils.py @@ -80,10 +80,9 @@ class ReportUrl: Args: namespace: The namespace of the current application. - cash: The currently-specified account of the - cash account or cash summary. - ledger: The currently-specified account of the - ledger or leger summary. + cash: The currently-specified account of the cash account or cash + summary. + ledger: The currently-specified account of the ledger or leger summary. period: The currently-specified period. """ @@ -145,9 +144,8 @@ class DataFiller: """Adds accounts. Args: - accounts (tuple[tuple[any]]): Tuples of - (code, English, Traditional Chinese, Simplified Chinese) - of the accounts. + accounts: Tuples of (code, English, Traditional Chinese, Simplified + Chinese) of the accounts. """ for data in accounts: code = data[0] @@ -167,8 +165,7 @@ class DataFiller: """Adds a transfer transaction. Args: - date: The date, or the number of days from - today. + date: The date, or the number of days from today. debit: Tuples of (account, summary, amount) of the debit records. credit: Tuples of (account, summary, amount) of the credit records. """ diff --git a/src/mia_core/utils.py b/src/mia_core/utils.py index aae649a..9c3bae0 100644 --- a/src/mia_core/utils.py +++ b/src/mia_core/utils.py @@ -429,8 +429,7 @@ class Pagination: url (str): The link URL, or for a non-link slot. title (str): The title of the link. is_active (bool): Whether this link is currently active. - is_small_screen (bool): Whether this link is for small - screens + is_small_screen (bool): Whether this link is for small screens. """ def __int__(self): self.url = None