better type annotation
This commit is contained in:
parent
3b8e971e00
commit
d4d4f0d7c7
|
@ -44,7 +44,7 @@ def process_soup(soup: BeautifulSoup) -> List[Event]:
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
|
||||||
def get_events_today(events: List[Event]):
|
def get_events_today(events: List[Event]) -> List[Event]:
|
||||||
return list(filter(lambda e: e.start.date() == datetime.datetime.today().date(), events))
|
return list(filter(lambda e: e.start.date() == datetime.datetime.today().date(), events))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue