fix param typing in retry decor (#1799)
This commit is contained in:
@@ -14,8 +14,8 @@ F = TypeVar("F", bound=Callable[..., Any])
|
|||||||
def retry(
|
def retry(
|
||||||
exceptions: Type[Exception] | tuple[Type[Exception], ...] | None = None,
|
exceptions: Type[Exception] | tuple[Type[Exception], ...] | None = None,
|
||||||
tries: int = 3,
|
tries: int = 3,
|
||||||
delay: int = 3,
|
delay: float = 3.0,
|
||||||
backoff: int = 2,
|
backoff: float = 2.0,
|
||||||
) -> Callable[[F], F]:
|
) -> Callable[[F], F]:
|
||||||
"""
|
"""
|
||||||
Decorator to retry a function a specified number of times with a delay between attempts.
|
Decorator to retry a function a specified number of times with a delay between attempts.
|
||||||
|
|||||||
Reference in New Issue
Block a user