Skip to content
Snippets Groups Projects
Commit 39b35b23 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Add type hints for timezone.py

parent b89fe8e6
No related branches found
No related tags found
2 merge requests!143Release 0.15.0,!135Add and fix more type hints
Pipeline #49962 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment