From ca2c942b654ae0763acf9ae450fb8df650bb906e Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 30 Jul 2023 19:10:30 -0700 Subject: [PATCH] Add typing to compiled_references and inferred_queries --- src/khoj/routers/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index 7bc2da7e..27481e21 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -5,7 +5,7 @@ import time import yaml import logging import json -from typing import List, Optional, Union +from typing import List, Optional, Union, Any # External Packages from fastapi import APIRouter, HTTPException, Header, Request @@ -703,8 +703,8 @@ async def extract_references_and_questions( # Initialize Variables conversation_type = "general" if q.startswith("@general") else "notes" - compiled_references = [] - inferred_queries = [] + compiled_references = List[Any] + inferred_queries = List[Any] if state.content_index is None: logger.warn(