Skip to content

Commit f098287

Browse files
committed
fix(types): remove unused type ignore comments in executor
Remove type ignore comments that CI reports as unused. The newer version of tenacity has proper type hints.
1 parent f5c4ea4 commit f098287

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 # type: ignore[no-any-return]
251+
return result
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( # type: ignore[misc, untyped-decorator]
277+
@retry(
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)