From 03544efde2826a000e129960b58e609135a57e6a Mon Sep 17 00:00:00 2001 From: sabaimran Date: Wed, 9 Oct 2024 17:48:24 -0700 Subject: [PATCH] Ignore typing of the result dict for online, web page scrape --- src/khoj/routers/research.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/khoj/routers/research.py b/src/khoj/routers/research.py index dbbb9996..837fb228 100644 --- a/src/khoj/routers/research.py +++ b/src/khoj/routers/research.py @@ -191,7 +191,7 @@ async def execute_information_collection( if isinstance(result, dict) and ChatEvent.STATUS in result: yield result[ChatEvent.STATUS] else: - online_results = result + online_results: Dict[str, Dict] = result # type: ignore this_iteration.onlineContext = online_results elif this_iteration.data_source == ConversationCommand.Webpage: @@ -208,7 +208,7 @@ async def execute_information_collection( if isinstance(result, dict) and ChatEvent.STATUS in result: yield result[ChatEvent.STATUS] else: - direct_web_pages: Dict[str, Dict] = result + direct_web_pages: Dict[str, Dict] = result # type: ignore webpages = [] for query in direct_web_pages: