diff --git a/src/linkahead/common/timezone.py b/src/linkahead/common/timezone.py index 5aa003cec8522fe914ccb7d4238ca46265cbcb9a..293deaf43177216157a7a29d3c06b86257dbbec3 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