diff --git a/sync_ics2gcal/gcal.py b/sync_ics2gcal/gcal.py index 45120b9..7fce052 100644 --- a/sync_ics2gcal/gcal.py +++ b/sync_ics2gcal/gcal.py @@ -9,7 +9,6 @@ from typing import ( Optional, Union, TypedDict, - TypeAlias, Literal, NamedTuple, ) @@ -30,7 +29,7 @@ class EventDateTime(TypedDict, total=False): timeZone: str -EventDateOrDateTime: TypeAlias = Union[EventDate, EventDateTime] +EventDateOrDateTime = Union[EventDate, EventDateTime] class ACLScope(TypedDict, total=False): @@ -81,8 +80,8 @@ EventDataKey = Union[ Literal["transparency"], Literal["visibility"], ] -EventList: TypeAlias = List[EventData] -EventTuple: TypeAlias = Tuple[EventData, EventData] +EventList = List[EventData] +EventTuple = Tuple[EventData, EventData] class EventsSearchResults(NamedTuple): diff --git a/sync_ics2gcal/ical.py b/sync_ics2gcal/ical.py index b1ea6fc..57e2c31 100644 --- a/sync_ics2gcal/ical.py +++ b/sync_ics2gcal/ical.py @@ -1,6 +1,6 @@ import datetime import logging -from typing import Union, Dict, Callable, Optional, Mapping, TypeAlias, TypedDict +from typing import Union, Dict, Callable, Optional, Mapping, TypedDict from icalendar import Calendar, Event from pytz import utc @@ -14,7 +14,7 @@ from .gcal import ( EventDataKey, ) -DateDateTime: TypeAlias = Union[datetime.date, datetime.datetime] +DateDateTime = Union[datetime.date, datetime.datetime] def format_datetime_utc(value: DateDateTime) -> str: