Changed the "account" property to private as "__account" in the DescriptionAccount class.

This commit is contained in:
依瑪貓 2023-04-03 19:13:16 +08:00
parent 78a9d7794c
commit 9263ae0274

View File

@ -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.