From ad52aa17832233225c61461f16fc5c2a5cfb6f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 3 Aug 2020 21:31:25 +0800 Subject: [PATCH] Revised the documentation in Period in the accounting application. --- mia_core/period.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mia_core/period.py b/mia_core/period.py index c7f6187..e6287ca 100644 --- a/mia_core/period.py +++ b/mia_core/period.py @@ -409,8 +409,8 @@ class Period: Attributes: spec (str): The currently-using period specification. - start (date): The start of the period. - end (date): The end of the period. + start (datetime.date): The start of the period. + end (datetime.date): The end of the period. description (str): The text description of the period. error (str): The period specification format error, or None on success. @@ -600,7 +600,7 @@ class Period: """Calculates and returns the last day of a month. Args: - day (date): A day in the month. + day (datetime.date): A day in the month. Returns: date: The last day in the month @@ -659,7 +659,7 @@ class Period: """Returns the text description of a day. Args: - day (date): The date. + day (datetime.date): The date. Returns: str: The description of the day.