mirror of
				https://github.com/b4tman/sync_ics2gcal
				synced 2025-11-04 04:38:26 +00:00 
			
		
		
		
	remove TypeAlias usage
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user