Add docstring

This commit is contained in:
Edward Betts 2023-10-29 15:35:37 +00:00
parent f866a38add
commit a9539545fa

View file

@ -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