Skip to content

Commit 154917a

Browse files
committed
add default
1 parent 23c22ca commit 154917a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/service-library/src/servicelib/async_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
245245
async def retried_cancel_task(
246246
task: asyncio.Task,
247247
*,
248-
timeout: float | None, # noqa: ASYNC109
248+
timeout: float | None = None, # noqa: ASYNC109
249249
) -> None:
250250
"""Reliable task cancellation. Some libraries will just hang without
251251
cancelling the task. The operation is retried _MAX_TASK_CANCELLATION_ATTEMPTS times

0 commit comments

Comments
 (0)