Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
stop_func=stop_func, wait_func=wait_func)
# unfortunately retrying uses ms everywhere and we are using seconds (as in floats 0.5 is valid)
# to remain consistent with botoflow, we fix all the times before passing the to retrying
self._stop_max_attempt_number = 3 if stop_max_attempt_number is None else stop_max_attempt_number
self._stop_max_delay = 1000 if stop_max_delay is None else int(stop_max_delay * 1000)
self._wait_fixed = 1000 if wait_fixed is None else int(wait_fixed * 1000)
self._wait_random_min = 0 if wait_random_min is None else int(wait_random_min * 1000)
self._wait_random_max = 1000 if wait_random_max is None else int(wait_random_max * 1000)
self._wait_incrementing_start = 0 if wait_incrementing_start is None else int(wait_incrementing_start * 1000)
self._wait_incrementing_increment = (1000 if wait_incrementing_increment is None
else int(wait_incrementing_increment * 1000))
self._wait_exponential_multiplier = (1 if wait_exponential_multiplier is None
else int(wait_exponential_multiplier * 1000))
self._wait_exponential_max = (retrying.MAX_WAIT if wait_exponential_max is None
else int(wait_exponential_max * 1000))