From d4d4f0d7c7ef1b67ed7128670ad02ae021aacdfb Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Fri, 18 Aug 2023 14:27:23 +0200 Subject: [PATCH] better type annotation --- scraping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraping.py b/scraping.py index 0f6154f..1e2ecba 100644 --- a/scraping.py +++ b/scraping.py @@ -44,7 +44,7 @@ def process_soup(soup: BeautifulSoup) -> List[Event]: 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))