From 48fa04eaccf2b9617cd702676fd5b3be39efa18e Mon Sep 17 00:00:00 2001 From: Marwan Baghdad Date: Mon, 16 Jan 2023 15:06:42 +0100 Subject: [PATCH] Update decorator's argument "max_time" description * Add that the `max_time` is in seconds --- backoff/_decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backoff/_decorator.py b/backoff/_decorator.py index 92dee1b..77ed8c2 100644 --- a/backoff/_decorator.py +++ b/backoff/_decorator.py @@ -51,7 +51,7 @@ def on_predicate(wait_gen: _WaitGenerator, will be returned. The default value of None means there is no limit to the number of tries. If a callable is passed, it will be evaluated at runtime and its return value used. - max_time: The maximum total amount of time to try for before + max_time: The maximum total amount of time in seconds to try for before giving up. If this time expires, the result of the last attempt will be returned. If a callable is passed, it will be evaluated at runtime and its return value used.