mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 05:39:11 +00:00
Fix typing issues for mypy (#372)
This commit is contained in:
@@ -21,7 +21,7 @@ def extract_questions_offline(
|
||||
conversation_log={},
|
||||
use_history: bool = True,
|
||||
should_extract_questions: bool = True,
|
||||
):
|
||||
) -> List[str]:
|
||||
"""
|
||||
Infer search queries to retrieve relevant notes to answer user query
|
||||
"""
|
||||
|
||||
@@ -703,8 +703,8 @@ async def extract_references_and_questions(
|
||||
|
||||
# Initialize Variables
|
||||
conversation_type = "general" if q.startswith("@general") else "notes"
|
||||
compiled_references = List[Any]
|
||||
inferred_queries = List[Any]
|
||||
compiled_references: List[Any] = []
|
||||
inferred_queries: List[str] = []
|
||||
|
||||
if state.content_index is None:
|
||||
logger.warn(
|
||||
|
||||
Reference in New Issue
Block a user