Skip to content

Commit 433e8a8

Browse files
committed
fix(db): add type ignore comments for MyPy compatibility
- Add type: ignore[no-any-return] for decorated method return - Add type: ignore[misc] for untyped tenacity decorator The tenacity library doesn't have type stubs, so we need to suppress these MyPy warnings.
1 parent 30fd3b6 commit 433e8a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

db/executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async def execute(
248248
)
249249

250250
result.execution_time_ms = execution_time_ms
251-
return result
251+
return result # type: ignore[no-any-return]
252252

253253
except asyncio.TimeoutError as e:
254254
logger.error(
@@ -274,7 +274,7 @@ async def execute(
274274
details={"error": str(e)},
275275
) from e
276276

277-
@retry(
277+
@retry( # type: ignore[misc]
278278
retry=retry_if_exception_type((ConnectionError, OSError)),
279279
stop=stop_after_attempt(3),
280280
wait=wait_exponential(multiplier=1, min=2, max=10),

0 commit comments

Comments
 (0)