mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 07:28:24 +00:00
fix _tz_aware_datetime return type
This commit is contained in:
parent
6c571df7bc
commit
19192d1641
@ -117,8 +117,7 @@ class CalendarSync:
|
||||
return list(filter(filter_by_date, events))
|
||||
|
||||
@staticmethod
|
||||
def _tz_aware_datetime(date: Union[datetime.date, datetime.datetime]) \
|
||||
-> Union[datetime.date, datetime.datetime]:
|
||||
def _tz_aware_datetime(date: Union[datetime.date, datetime.datetime]) -> datetime.datetime:
|
||||
"""make tz aware datetime from datetime/date (utc if no tzinfo)
|
||||
|
||||
Arguments:
|
||||
|
Loading…
x
Reference in New Issue
Block a user