mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 23:38:58 +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))
|
return list(filter(filter_by_date, events))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _tz_aware_datetime(date: Union[datetime.date, datetime.datetime]) \
|
def _tz_aware_datetime(date: Union[datetime.date, datetime.datetime]) -> datetime.datetime:
|
||||||
-> Union[datetime.date, datetime.datetime]:
|
|
||||||
"""make tz aware datetime from datetime/date (utc if no tzinfo)
|
"""make tz aware datetime from datetime/date (utc if no tzinfo)
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user