chore: minor fixes and formatting

This commit is contained in:
2026-08-12 19:52:30 +07:00
parent a011b2724b
commit ca276cdd61
48 changed files with 394 additions and 354 deletions

View File

@@ -1,5 +1,4 @@
import logging
from typing import Optional
from redis.asyncio import Redis
@@ -18,7 +17,7 @@ class RedisClient:
logger.exception(e)
return False
async def get_search_query(self, query_hash: str) -> Optional[str]:
async def get_search_query(self, query_hash: str) -> str | None:
try:
res = await self.r.get(f"search:{query_hash}")
return res.decode()