From 39b35b2327062eaec1863129dba230eedaeec594 Mon Sep 17 00:00:00 2001
From: Joscha Schmiedt <joscha@schmiedt.dev>
Date: Wed, 17 Apr 2024 23:02:12 +0200
Subject: [PATCH] Add type hints for timezone.py

---
 src/linkahead/common/timezone.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/linkahead/common/timezone.py b/src/linkahead/common/timezone.py
index 5aa003ce..293deaf4 100644
--- a/src/linkahead/common/timezone.py
+++ b/src/linkahead/common/timezone.py
@@ -1,3 +1,7 @@
+from __future__ import annotations
+from typing import Optional
+
+
 class TimeZone():
     """
     TimeZone, e.g. CEST, Europe/Berlin, UTC+4.
@@ -13,7 +17,7 @@ class TimeZone():
         A human-friendly name of the time zone:
     """
 
-    def __init__(self, zone_id: str, offset: int, display_name: str):
+    def __init__(self, zone_id: Optional[str], offset: Optional[int], display_name: str):
         self.zone_id = zone_id
         self.offset = offset
         self.display_name = display_name
-- 
GitLab