This commit is contained in:
@@ -4,7 +4,7 @@ import logging
|
||||
import os
|
||||
import secrets
|
||||
import time
|
||||
from typing import Any, Optional, cast
|
||||
from typing import Any, cast
|
||||
|
||||
from httpx import AsyncClient, Response
|
||||
|
||||
@@ -80,7 +80,7 @@ class SearchCache:
|
||||
logger.info(f"Cached {len(results)} search results for query '{query}' in memory")
|
||||
return True
|
||||
|
||||
async def get(self, query: str, limit: int = 10, offset: int = 0) -> Optional[list]:
|
||||
async def get(self, query: str, limit: int = 10, offset: int = 0) -> list | None:
|
||||
"""Get paginated results for a query"""
|
||||
normalized_query = self._normalize_query(query)
|
||||
all_results = None
|
||||
|
||||
Reference in New Issue
Block a user