From a9539545fa0010d753d9f086d28d7db2d9ee7a33 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Oct 2023 15:35:37 +0000 Subject: [PATCH] Add docstring --- agenda/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/agenda/__init__.py b/agenda/__init__.py index 86c755b..b44ceb2 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -328,6 +328,7 @@ def critical_mass(start_date: date, limit: int = 12) -> list[Event]: def as_date(d: date | datetime) -> date: + """Return date for given date or datetime.""" return d.date() if isinstance(d, datetime) else d