diff --git a/satella/__init__.py b/satella/__init__.py index a84afa18845e9cc5c0b23a9cdbb6e85e0b3eab7f..246e4ec4b54b438493f77b75708eee8cb403b470 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.17.10a1' +__version__ = '2.17.10' diff --git a/satella/time/measure.py b/satella/time/measure.py index 7ef15ed2dfe9e87a613fe09252bc116928c06b6a..038c81f6710df3d627303d5f0bd95f0e444a5673 100644 --- a/satella/time/measure.py +++ b/satella/time/measure.py @@ -1,7 +1,11 @@ from ..exceptions import WouldWaitMore -from concurrent.futures._base import Future import typing as tp import time +import copy +import inspect +import warnings +from concurrent.futures import Future +from functools import wraps # import from functools to prevent circular import exception TimeSignal = tp.Callable[[], float] diff --git a/satella/time/misc.py b/satella/time/misc.py index 714ff201ec87f13c294a020078a0749dba4f47ce..0af9a9b5825c77e9eeb0c6e3eed262e78c66b620 100644 --- a/satella/time/misc.py +++ b/satella/time/misc.py @@ -1,16 +1,12 @@ -import copy -import inspect import time import typing as tp -import warnings -from concurrent.futures import Future -from functools import wraps # import from functools to prevent circular import exception -__all__ = ['measure', 'time_as_int', 'time_ms', 'sleep', 'time_us', 'ExponentialBackoff', - 'parse_time_string'] +__all__ = ['time_as_int', 'time_ms', 'sleep', 'time_us', 'ExponentialBackoff'] from satella.coding.concurrent.thread import Condition from satella.exceptions import WouldWaitMore +from .parse import parse_time_string +from .measure import measure def sleep(y: tp.Union[str, float], abort_on_interrupt: bool = False) -> bool: @@ -141,8 +137,6 @@ class ExponentialBackoff: :param timeout: maximum amount of seconds to wait. If waited more than that, WouldWaitMore will be raised - :param sleep_function: a function which will be called with a single argument, - the number of seconds to sleep. This should sleep by that many seconds. :raises WouldWaitMore: waited for timeout and service still was not healthy """ with measure(timeout=timeout) as m: