From 9263ae0274ef66336a05aa6f8a7cf80800dd30d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 3 Apr 2023 19:13:16 +0800 Subject: [PATCH] Changed the "account" property to private as "__account" in the DescriptionAccount class. --- src/accounting/journal_entry/utils/description_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/journal_entry/utils/description_editor.py b/src/accounting/journal_entry/utils/description_editor.py index a136681..45bc5bd 100644 --- a/src/accounting/journal_entry/utils/description_editor.py +++ b/src/accounting/journal_entry/utils/description_editor.py @@ -36,7 +36,7 @@ class DescriptionAccount: :param account: The account. :param freq: The frequency of the tag with the account. """ - self.account: Account = account + self.__account: Account = account """The account.""" self.id: int = account.id """The account ID.""" @@ -52,7 +52,7 @@ class DescriptionAccount: :return: The string representation of the account. """ - return str(self.account) + return str(self.__account) def add_freq(self, freq: int) -> None: """Adds the frequency of an account.