From 58d1add810ea1b307348def498344eba96af691a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 18:32:27 +0800 Subject: [PATCH] Added type hints to the CASH_CODE, ACCUMULATED_CHANGE_CODE, and NET_CHANGE_CODE constants. --- src/accounting/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index 839c50f..9eb1d5e 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -141,11 +141,11 @@ class Account(db.Model): entries = db.relationship("JournalEntry", back_populates="account") """The journal entries.""" - CASH_CODE = "1111-001" + CASH_CODE: str = "1111-001" """The code of the cash account,""" - ACCUMULATED_CHANGE_CODE = "3351-001" + ACCUMULATED_CHANGE_CODE: str = "3351-001" """The code of the accumulated-change account,""" - NET_CHANGE_CODE = "3353-001" + NET_CHANGE_CODE: str = "3353-001" """The code of the net-change account,""" def __str__(self) -> str: