Add docstring
This commit is contained in:
parent
f866a38add
commit
a9539545fa
|
@ -328,6 +328,7 @@ def critical_mass(start_date: date, limit: int = 12) -> list[Event]:
|
||||||
|
|
||||||
|
|
||||||
def as_date(d: date | datetime) -> date:
|
def as_date(d: date | datetime) -> date:
|
||||||
|
"""Return date for given date or datetime."""
|
||||||
return d.date() if isinstance(d, datetime) else d
|
return d.date() if isinstance(d, datetime) else d
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue