Skip to content

Commit f5c4ea4

Browse files
committed
fix(types): update type ignore comment for retry decorator
Fix MyPy error by adding untyped-decorator to type ignore list for the @Retry decorator from tenacity library.
1 parent 3eaa79d commit f5c4ea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

db/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def execute(
274274
details={"error": str(e)},
275275
) from e
276276

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