Revised the documentation in Period in the accounting application.
This commit is contained in:
parent
2ff813ebd1
commit
ad52aa1783
@ -409,8 +409,8 @@ class Period:
|
|||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
spec (str): The currently-using period specification.
|
spec (str): The currently-using period specification.
|
||||||
start (date): The start of the period.
|
start (datetime.date): The start of the period.
|
||||||
end (date): The end of the period.
|
end (datetime.date): The end of the period.
|
||||||
description (str): The text description of the period.
|
description (str): The text description of the period.
|
||||||
error (str): The period specification format error, or
|
error (str): The period specification format error, or
|
||||||
None on success.
|
None on success.
|
||||||
@ -600,7 +600,7 @@ class Period:
|
|||||||
"""Calculates and returns the last day of a month.
|
"""Calculates and returns the last day of a month.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
day (date): A day in the month.
|
day (datetime.date): A day in the month.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
date: The last day in the month
|
date: The last day in the month
|
||||||
@ -659,7 +659,7 @@ class Period:
|
|||||||
"""Returns the text description of a day.
|
"""Returns the text description of a day.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
day (date): The date.
|
day (datetime.date): The date.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: The description of the day.
|
str: The description of the day.
|
||||||
|
Loading…
Reference in New Issue
Block a user