From fd7fc7c710ae2a088b25d208d1176da4cdc71b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 5 Jan 2023 11:24:31 +0100 Subject: [PATCH] Annotate common.util.time.now --- src/web/common/util/time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/common/util/time.py b/src/web/common/util/time.py index 13ee8a1..e0db6ad 100644 --- a/src/web/common/util/time.py +++ b/src/web/common/util/time.py @@ -4,7 +4,7 @@ from zoneinfo import ZoneInfo import re -def now(): +def now() -> datetime: return datetime.now(ZoneInfo(settings.TIME_ZONE))