From dffcf6d2ce7b6d5a0b07d7e237eebc8321a8c607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 7 Mar 2023 12:26:27 +0800 Subject: [PATCH] Removed the unused is_account pseudo property in the IncomeStatementRow row. --- src/accounting/report/report_rows.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/accounting/report/report_rows.py b/src/accounting/report/report_rows.py index fae777c..bf77dc5 100644 --- a/src/accounting/report/report_rows.py +++ b/src/accounting/report/report_rows.py @@ -250,15 +250,6 @@ class IncomeStatementRow(ReportRow): self.url: str | None = url """The URL.""" - @property - def is_account(self) -> bool: - """Returns whether the row represents an account. - - :return: True if the row represents an account, or False otherwise. - """ - return not self.is_category and not self.is_total \ - and not self.is_subcategory and not self.is_subtotal - def as_dict(self) -> dict[str, t.Any]: if self.is_subtotal: return {"": "Total",