SYMBOL INDEX (485 symbols across 18 files) FILE: tenacity/__init__.py class IterState (line 112) | class IterState: method reset (line 120) | def reset(self) -> None: class TryAgain (line 127) | class TryAgain(Exception): class DoAttempt (line 134) | class DoAttempt: class DoSleep (line 138) | class DoSleep(float): class BaseAction (line 142) | class BaseAction: method __repr__ (line 154) | def __repr__(self) -> str: method __str__ (line 160) | def __str__(self) -> str: class RetryAction (line 164) | class RetryAction(BaseAction): method __init__ (line 168) | def __init__(self, sleep: t.SupportsFloat) -> None: function _first_set (line 175) | def _first_set(first: t.Any | object, second: t.Any) -> t.Any: class RetryError (line 179) | class RetryError(Exception): method __init__ (line 182) | def __init__(self, last_attempt: "Future") -> None: method reraise (line 186) | def reraise(self) -> t.NoReturn: method __str__ (line 191) | def __str__(self) -> str: class AttemptManager (line 195) | class AttemptManager: method __init__ (line 198) | def __init__(self, retry_state: "RetryCallState"): method __enter__ (line 201) | def __enter__(self) -> None: method __exit__ (line 204) | def __exit__( method __aenter__ (line 217) | async def __aenter__(self) -> None: method __aexit__ (line 220) | async def __aexit__( class BaseRetrying (line 229) | class BaseRetrying(ABC): method __init__ (line 230) | def __init__( method copy (line 259) | def copy( method __getstate__ (line 294) | def __getstate__(self) -> dict[str, t.Any]: method __setstate__ (line 298) | def __setstate__(self, state: dict[str, t.Any]) -> None: method __str__ (line 302) | def __str__(self) -> str: method __repr__ (line 305) | def __repr__(self) -> str: method statistics (line 318) | def statistics(self) -> dict[str, t.Any]: method iter_state (line 344) | def iter_state(self) -> IterState: method wraps (line 349) | def wraps(self, f: t.Callable[P, R]) -> "_RetryDecorated[P, R]": method begin (line 378) | def begin(self) -> None: method _add_action_func (line 385) | def _add_action_func(self, fn: t.Callable[..., t.Any]) -> None: method _run_retry (line 388) | def _run_retry(self, retry_state: "RetryCallState") -> None: method _run_wait (line 391) | def _run_wait(self, retry_state: "RetryCallState") -> None: method _run_stop (line 399) | def _run_stop(self, retry_state: "RetryCallState") -> None: method iter (line 403) | def iter(self, retry_state: "RetryCallState") -> DoAttempt | DoSleep |... method _begin_iter (line 410) | def _begin_iter(self, retry_state: "RetryCallState") -> None: method _post_retry_check_actions (line 427) | def _post_retry_check_actions(self, retry_state: "RetryCallState") -> ... method _post_stop_check_actions (line 439) | def _post_stop_check_actions(self, retry_state: "RetryCallState") -> N... method __iter__ (line 469) | def __iter__(self) -> t.Generator[AttemptManager, None, None]: method __call__ (line 484) | def __call__( class Retrying (line 493) | class Retrying(BaseRetrying): method __call__ (line 496) | def __call__( class Future (line 521) | class Future(futures.Future[t.Any]): method __init__ (line 524) | def __init__(self, attempt_number: int) -> None: method failed (line 529) | def failed(self) -> bool: method construct (line 534) | def construct( class RetryCallState (line 546) | class RetryCallState: method __init__ (line 549) | def __init__( method get_fn_name (line 580) | def get_fn_name(self) -> str: method seconds_since_start (line 592) | def seconds_since_start(self) -> float | None: method prepare_for_next_attempt (line 597) | def prepare_for_next_attempt(self) -> None: method set_result (line 603) | def set_result(self, val: t.Any) -> None: method set_exception (line 609) | def set_exception( method __repr__ (line 620) | def __repr__(self) -> str: class _RetryDecorated (line 634) | class _RetryDecorated(t.Protocol[P, R]): method retry_with (line 643) | def retry_with(self, *args: t.Any, **kwargs: t.Any) -> "_RetryDecorate... method __call__ (line 645) | def __call__(self, *args: P.args, **kwargs: P.kwargs) -> R: ... class _AsyncRetryDecorator (line 648) | class _AsyncRetryDecorator(t.Protocol): method __call__ (line 650) | def __call__( method __call__ (line 654) | def __call__( method __call__ (line 658) | def __call__( method __call__ (line 662) | def __call__( function retry (line 668) | def retry(func: t.Callable[P, R]) -> _RetryDecorated[P, R]: ... function retry (line 672) | def retry( function retry (line 690) | def retry( function retry (line 707) | def retry(*dargs: t.Any, **dkw: t.Any) -> t.Any: FILE: tenacity/_utils.py class LoggerProtocol (line 28) | class LoggerProtocol(typing.Protocol): method log (line 35) | def log(self, level: int, msg: str, *args: typing.Any) -> typing.Any: ... function find_ordinal (line 38) | def find_ordinal(pos_num: int) -> str: function to_ordinal (line 57) | def to_ordinal(pos_num: int) -> str: function get_callback_name (line 61) | def get_callback_name(cb: typing.Callable[..., typing.Any]) -> str: function to_seconds (line 84) | def to_seconds(time_unit: time_unit_type) -> float: function is_coroutine_callable (line 90) | def is_coroutine_callable(call: typing.Callable[..., typing.Any]) -> bool: function wrap_to_async_func (line 100) | def wrap_to_async_func( FILE: tenacity/after.py function after_nothing (line 25) | def after_nothing(retry_state: "RetryCallState") -> None: function after_log (line 29) | def after_log( FILE: tenacity/asyncio/__init__.py function _portable_async_sleep (line 56) | def _portable_async_sleep(seconds: float) -> t.Awaitable[None]: class AsyncRetrying (line 74) | class AsyncRetrying(BaseRetrying): method __init__ (line 75) | def __init__( method __call__ (line 111) | async def __call__( # type: ignore[override] method _add_action_func (line 136) | def _add_action_func(self, fn: t.Callable[..., t.Any]) -> None: method _run_retry (line 139) | async def _run_retry(self, retry_state: "RetryCallState") -> None: # ... method _run_wait (line 144) | async def _run_wait(self, retry_state: "RetryCallState") -> None: # t... method _run_stop (line 152) | async def _run_stop(self, retry_state: "RetryCallState") -> None: # t... method iter (line 158) | async def iter(self, retry_state: "RetryCallState") -> DoAttempt | DoS... method __iter__ (line 165) | def __iter__(self) -> t.Generator[AttemptManager, None, None]: method __aiter__ (line 168) | def __aiter__(self) -> "AsyncRetrying": method __anext__ (line 173) | async def __anext__(self) -> AttemptManager: method wraps (line 186) | def wraps(self, fn: t.Callable[P, R]) -> _RetryDecorated[P, R]: FILE: tenacity/asyncio/retry.py class async_retry_base (line 25) | class async_retry_base(retry_base): method __call__ (line 29) | async def __call__(self, retry_state: "RetryCallState") -> bool: # ty... method __and__ (line 32) | def __and__( # type: ignore[override] method __rand__ (line 37) | def __rand__( # type: ignore[misc,override] method __or__ (line 42) | def __or__( # type: ignore[override] method __ror__ (line 47) | def __ror__( # type: ignore[misc,override] class retry_if_exception (line 58) | class retry_if_exception(async_retry_base): method __init__ (line 61) | def __init__( method __call__ (line 66) | async def __call__(self, retry_state: "RetryCallState") -> bool: # ty... class retry_if_result (line 78) | class retry_if_result(async_retry_base): method __init__ (line 81) | def __init__( method __call__ (line 86) | async def __call__(self, retry_state: "RetryCallState") -> bool: # ty... class retry_any (line 95) | class retry_any(async_retry_base): method __init__ (line 98) | def __init__(self, *retries: retry_base | async_retry_base) -> None: method __call__ (line 101) | async def __call__(self, retry_state: "RetryCallState") -> bool: # ty... method __ror__ (line 109) | def __ror__( # type: ignore[misc,override] class retry_all (line 117) | class retry_all(async_retry_base): method __init__ (line 120) | def __init__(self, *retries: retry_base | async_retry_base) -> None: method __call__ (line 123) | async def __call__(self, retry_state: "RetryCallState") -> bool: # ty... method __rand__ (line 131) | def __rand__( # type: ignore[misc,override] FILE: tenacity/before.py function before_nothing (line 25) | def before_nothing(retry_state: "RetryCallState") -> None: function before_log (line 29) | def before_log( FILE: tenacity/before_sleep.py function before_sleep_nothing (line 26) | def before_sleep_nothing(retry_state: "RetryCallState") -> None: function before_sleep_log (line 30) | def before_sleep_log( FILE: tenacity/nap.py function sleep (line 25) | def sleep(seconds: float) -> None: class sleep_using_event (line 34) | class sleep_using_event: method __init__ (line 37) | def __init__(self, event: "threading.Event") -> None: method __call__ (line 40) | def __call__(self, timeout: float | None) -> None: FILE: tenacity/retry.py class retry_base (line 25) | class retry_base(abc.ABC): method __call__ (line 29) | def __call__(self, retry_state: "RetryCallState") -> bool: method __and__ (line 32) | def __and__(self, other: "RetryBaseT") -> "retry_all": method __rand__ (line 40) | def __rand__(self, other: "RetryBaseT") -> "retry_all": method __or__ (line 46) | def __or__(self, other: "RetryBaseT") -> "retry_any": method __ror__ (line 54) | def __ror__(self, other: "RetryBaseT") -> "retry_any": class _retry_never (line 64) | class _retry_never(retry_base): method __call__ (line 67) | def __call__(self, retry_state: "RetryCallState") -> bool: class _retry_always (line 74) | class _retry_always(retry_base): method __call__ (line 77) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_exception (line 84) | class retry_if_exception(retry_base): method __init__ (line 87) | def __init__(self, predicate: typing.Callable[[BaseException], bool]) ... method __call__ (line 90) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_exception_type (line 102) | class retry_if_exception_type(retry_if_exception): method __init__ (line 105) | def __init__( method _check (line 113) | def _check(self, e: BaseException) -> bool: class retry_if_not_exception_type (line 117) | class retry_if_not_exception_type(retry_if_exception): method __init__ (line 120) | def __init__( method _check (line 128) | def _check(self, e: BaseException) -> bool: class retry_unless_exception_type (line 132) | class retry_unless_exception_type(retry_if_exception): method __init__ (line 135) | def __init__( method _check (line 143) | def _check(self, e: BaseException) -> bool: method __call__ (line 146) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_exception_cause_type (line 160) | class retry_if_exception_cause_type(retry_base): method __init__ (line 167) | def __init__( method __call__ (line 174) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_result (line 188) | class retry_if_result(retry_base): method __init__ (line 191) | def __init__(self, predicate: typing.Callable[[typing.Any], bool]) -> ... method __call__ (line 194) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_not_result (line 203) | class retry_if_not_result(retry_base): method __init__ (line 206) | def __init__(self, predicate: typing.Callable[[typing.Any], bool]) -> ... method __call__ (line 209) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_if_exception_message (line 218) | class retry_if_exception_message(retry_if_exception): method __init__ (line 221) | def __init__( method _check (line 240) | def _check(self, exception: BaseException) -> bool: class retry_if_not_exception_message (line 247) | class retry_if_not_exception_message(retry_if_exception_message): method _check (line 250) | def _check(self, exception: BaseException) -> bool: method __call__ (line 253) | def __call__(self, retry_state: "RetryCallState") -> bool: class retry_any (line 266) | class retry_any(retry_base): method __init__ (line 269) | def __init__(self, *retries: "RetryBaseT") -> None: method __call__ (line 272) | def __call__(self, retry_state: "RetryCallState") -> bool: method __ror__ (line 275) | def __ror__(self, other: "RetryBaseT") -> "retry_any": class retry_all (line 281) | class retry_all(retry_base): method __init__ (line 284) | def __init__(self, *retries: "RetryBaseT") -> None: method __call__ (line 287) | def __call__(self, retry_state: "RetryCallState") -> bool: method __rand__ (line 290) | def __rand__(self, other: "RetryBaseT") -> "retry_all": FILE: tenacity/stop.py class stop_base (line 27) | class stop_base(abc.ABC): method __call__ (line 31) | def __call__(self, retry_state: "RetryCallState") -> bool: method __and__ (line 34) | def __and__(self, other: "stop_base") -> "stop_all": method __or__ (line 37) | def __or__(self, other: "stop_base") -> "stop_any": class stop_any (line 44) | class stop_any(stop_base): method __init__ (line 47) | def __init__(self, *stops: stop_base) -> None: method __call__ (line 50) | def __call__(self, retry_state: "RetryCallState") -> bool: class stop_all (line 54) | class stop_all(stop_base): method __init__ (line 57) | def __init__(self, *stops: stop_base) -> None: method __call__ (line 60) | def __call__(self, retry_state: "RetryCallState") -> bool: class _stop_never (line 64) | class _stop_never(stop_base): method __call__ (line 67) | def __call__(self, retry_state: "RetryCallState") -> bool: class stop_when_event_set (line 74) | class stop_when_event_set(stop_base): method __init__ (line 77) | def __init__(self, event: "threading.Event") -> None: method __call__ (line 80) | def __call__(self, retry_state: "RetryCallState") -> bool: class stop_after_attempt (line 84) | class stop_after_attempt(stop_base): method __init__ (line 87) | def __init__(self, max_attempt_number: int) -> None: method __call__ (line 90) | def __call__(self, retry_state: "RetryCallState") -> bool: class stop_after_delay (line 94) | class stop_after_delay(stop_base): method __init__ (line 104) | def __init__(self, max_delay: _utils.time_unit_type) -> None: method __call__ (line 107) | def __call__(self, retry_state: "RetryCallState") -> bool: class stop_before_delay (line 113) | class stop_before_delay(stop_base): method __init__ (line 121) | def __init__(self, max_delay: _utils.time_unit_type) -> None: method __call__ (line 124) | def __call__(self, retry_state: "RetryCallState") -> bool: FILE: tenacity/tornadoweb.py class TornadoRetrying (line 28) | class TornadoRetrying(BaseRetrying): method __init__ (line 31) | def __init__( method __call__ (line 40) | def __call__( # type: ignore[override] FILE: tenacity/wait.py class wait_base (line 28) | class wait_base(abc.ABC): method __call__ (line 32) | def __call__(self, retry_state: "RetryCallState") -> float: method __add__ (line 35) | def __add__(self, other: "wait_base") -> "wait_combine": method __radd__ (line 38) | def __radd__(self, other: "wait_base") -> "wait_combine | wait_base": class wait_fixed (line 48) | class wait_fixed(wait_base): method __init__ (line 51) | def __init__(self, wait: _utils.time_unit_type) -> None: method __call__ (line 54) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_none (line 58) | class wait_none(wait_fixed): method __init__ (line 61) | def __init__(self) -> None: class wait_random (line 65) | class wait_random(wait_base): method __init__ (line 68) | def __init__( method __call__ (line 74) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_combine (line 80) | class wait_combine(wait_base): method __init__ (line 83) | def __init__(self, *strategies: wait_base) -> None: method __call__ (line 86) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_chain (line 90) | class wait_chain(wait_base): method __init__ (line 106) | def __init__(self, *strategies: wait_base) -> None: method __call__ (line 109) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_exception (line 115) | class wait_exception(wait_base): method __init__ (line 141) | def __init__(self, predicate: typing.Callable[[BaseException], float])... method __call__ (line 144) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_incrementing (line 154) | class wait_incrementing(wait_base): method __init__ (line 161) | def __init__( method __call__ (line 171) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_exponential (line 176) | class wait_exponential(wait_base): method __init__ (line 189) | def __init__( method __call__ (line 201) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_random_exponential (line 210) | class wait_random_exponential(wait_exponential): method __call__ (line 236) | def __call__(self, retry_state: "RetryCallState") -> float: class wait_exponential_jitter (line 241) | class wait_exponential_jitter(wait_base): method __init__ (line 253) | def __init__( method __call__ (line 281) | def __call__(self, retry_state: "RetryCallState") -> float: FILE: tests/test_after.py class TestAfterLogFormat (line 13) | class TestAfterLogFormat(unittest.TestCase): method setUp (line 14) | def setUp(self) -> None: method test_01_default (line 26) | def test_01_default(self) -> None: method test_02_none_seconds_since_start (line 48) | def test_02_none_seconds_since_start(self) -> None: method test_02_custom_sec_format (line 66) | def test_02_custom_sec_format(self) -> None: FILE: tests/test_asyncio.py function asynctest (line 54) | def asynctest(callable_: _F) -> Callable[..., Any]: function _async_function (line 62) | async def _async_function(thing: NoIOErrorAfterCount) -> Any: function _retryable_coroutine (line 68) | async def _retryable_coroutine(thing: NoIOErrorAfterCount) -> Any: function _retryable_coroutine_with_2_attempts (line 74) | async def _retryable_coroutine_with_2_attempts(thing: NoIOErrorAfterCoun... class TestAsyncio (line 79) | class TestAsyncio(unittest.TestCase): method test_retry (line 81) | async def test_retry(self) -> None: method test_iscoroutinefunction (line 87) | async def test_iscoroutinefunction(self) -> None: method test_retry_using_async_retying (line 92) | async def test_retry_using_async_retying(self) -> None: method test_stop_after_attempt (line 99) | async def test_stop_after_attempt(self) -> None: method test_repr (line 106) | def test_repr(self) -> None: method test_retry_attributes (line 109) | def test_retry_attributes(self) -> None: method test_retry_preserves_argument_defaults (line 113) | def test_retry_preserves_argument_defaults(self) -> None: method test_attempt_number_is_correct_for_interleaved_coroutines (line 136) | async def test_attempt_number_is_correct_for_interleaved_coroutines(se... class TestAsyncEnabled (line 163) | class TestAsyncEnabled(unittest.TestCase): method test_enabled_false_skips_retry (line 165) | async def test_enabled_false_skips_retry(self) -> None: class TestTrio (line 181) | class TestTrio(unittest.TestCase): method test_trio_basic (line 182) | def test_trio_basic(self) -> None: class TestContextManager (line 195) | class TestContextManager(unittest.TestCase): method test_do_max_attempts (line 197) | async def test_do_max_attempts(self) -> None: method test_async_with_attempt_manager (line 211) | async def test_async_with_attempt_manager(self) -> None: method test_reraise (line 226) | async def test_reraise(self) -> None: method test_sleeps (line 242) | async def test_sleeps(self) -> None: method test_retry_with_result (line 256) | async def test_retry_with_result(self) -> None: method test_retry_with_async_result (line 275) | async def test_retry_with_async_result(self) -> None: method test_retry_with_async_exc (line 299) | async def test_retry_with_async_exc(self) -> None: method test_retry_with_async_result_or (line 328) | async def test_retry_with_async_result_or(self) -> None: method test_retry_with_async_result_ror (line 359) | async def test_retry_with_async_result_ror(self) -> None: method test_retry_with_async_result_and (line 390) | async def test_retry_with_async_result_and(self) -> None: method test_retry_with_async_result_rand (line 413) | async def test_retry_with_async_result_rand(self) -> None: method test_async_retying_iterator (line 436) | async def test_async_retying_iterator(self) -> None: class TestDecoratorWrapper (line 444) | class TestDecoratorWrapper(unittest.TestCase): method test_retry_function_attributes (line 446) | async def test_retry_function_attributes(self) -> None: function my_async_sleep (line 504) | async def my_async_sleep(x: float) -> None: function foo (line 509) | async def foo() -> None: class TestSyncFunctionWithAsyncSleep (line 513) | class TestSyncFunctionWithAsyncSleep(unittest.TestCase): method test_sync_function_with_async_sleep (line 515) | async def test_sync_function_with_async_sleep(self) -> None: FILE: tests/test_issue_478.py function asynctest (line 9) | def asynctest( class TestIssue478 (line 22) | class TestIssue478(unittest.TestCase): method test_issue (line 23) | def test_issue(self) -> None: method test_async (line 71) | async def test_async(self) -> None: FILE: tests/test_tenacity.py function _make_unset_exception (line 37) | def _make_unset_exception(func_name: str, **kwargs: typing.Any) -> TypeE... function _set_delay_since_start (line 46) | def _set_delay_since_start(retry_state: RetryCallState, delay: typing.An... function make_retry_state (line 54) | def make_retry_state( class TestBase (line 87) | class TestBase(unittest.TestCase): method test_retrying_repr (line 88) | def test_retrying_repr(self) -> None: method test_callstate_repr (line 97) | def test_callstate_repr(self) -> None: class TestRetryingName (line 113) | class TestRetryingName(unittest.TestCase): method test_str_default (line 114) | def test_str_default(self) -> None: method test_str_with_name (line 118) | def test_str_with_name(self) -> None: method test_str_preserved_by_copy (line 122) | def test_str_preserved_by_copy(self) -> None: method test_str_overridden_by_copy (line 127) | def test_str_overridden_by_copy(self) -> None: method test_get_fn_name_decorator (line 132) | def test_get_fn_name_decorator(self) -> None: method test_get_fn_name_context_manager_no_name (line 148) | def test_get_fn_name_context_manager_no_name(self) -> None: method test_get_fn_name_context_manager_with_name (line 154) | def test_get_fn_name_context_manager_with_name(self) -> None: method test_logging_uses_name (line 160) | def test_logging_uses_name(self) -> None: class TestStopConditions (line 180) | class TestStopConditions(unittest.TestCase): method test_never_stop (line 181) | def test_never_stop(self) -> None: method test_stop_any (line 185) | def test_stop_any(self) -> None: method test_stop_all (line 200) | def test_stop_all(self) -> None: method test_stop_or (line 215) | def test_stop_or(self) -> None: method test_stop_and (line 228) | def test_stop_and(self) -> None: method test_stop_after_attempt (line 241) | def test_stop_after_attempt(self) -> None: method test_stop_after_delay (line 247) | def test_stop_after_delay(self) -> None: method test_stop_before_delay (line 255) | def test_stop_before_delay(self) -> None: method test_legacy_explicit_stop_type (line 270) | def test_legacy_explicit_stop_type(self) -> None: method test_stop_func_with_retry_state (line 273) | def test_stop_func_with_retry_state(self) -> None: class TestWaitConditions (line 284) | class TestWaitConditions(unittest.TestCase): method test_no_sleep (line 285) | def test_no_sleep(self) -> None: method test_fixed_sleep (line 289) | def test_fixed_sleep(self) -> None: method test_incrementing_sleep (line 295) | def test_incrementing_sleep(self) -> None: method test_random_sleep (line 308) | def test_random_sleep(self) -> None: method test_random_sleep_withoutmin_ (line 325) | def test_random_sleep_withoutmin_(self) -> None: method test_exponential (line 339) | def test_exponential(self) -> None: method test_exponential_with_max_wait (line 350) | def test_exponential_with_max_wait(self) -> None: method test_exponential_with_min_wait (line 362) | def test_exponential_with_min_wait(self) -> None: method test_exponential_with_max_wait_and_multiplier (line 374) | def test_exponential_with_max_wait_and_multiplier(self) -> None: method test_exponential_with_min_wait_and_multiplier (line 386) | def test_exponential_with_min_wait_and_multiplier(self) -> None: method test_exponential_with_min_wait_andmax__wait (line 398) | def test_exponential_with_min_wait_andmax__wait(self) -> None: method test_legacy_explicit_wait_type (line 416) | def test_legacy_explicit_wait_type(self) -> None: method test_wait_func (line 419) | def test_wait_func(self) -> None: method test_wait_combine (line 428) | def test_wait_combine(self) -> None: method test_wait_exception (line 440) | def test_wait_exception(self) -> None: method test_wait_double_sum (line 458) | def test_wait_double_sum(self) -> None: method test_wait_triple_sum (line 466) | def test_wait_triple_sum(self) -> None: method test_wait_arbitrary_sum (line 478) | def test_wait_arbitrary_sum(self) -> None: method _assert_range (line 495) | def _assert_range(self, wait: float, min_: float, max_: float) -> None: method _assert_inclusive_range (line 499) | def _assert_inclusive_range(self, wait: float, low: float, high: float... method _assert_inclusive_epsilon (line 503) | def _assert_inclusive_epsilon( method test_wait_chain (line 509) | def test_wait_chain(self) -> None: method test_wait_chain_multiple_invocations (line 527) | def test_wait_chain_multiple_invocations(self) -> None: method test_wait_random_exponential (line 549) | def test_wait_random_exponential(self) -> None: method test_wait_random_exponential_statistically (line 579) | def test_wait_random_exponential_statistically(self) -> None: method test_wait_exponential_jitter (line 598) | def test_wait_exponential_jitter(self) -> None: method test_wait_exponential_jitter_min (line 621) | def test_wait_exponential_jitter_min(self) -> None: method test_wait_exponential_jitter_timedelta (line 631) | def test_wait_exponential_jitter_timedelta(self) -> None: method test_wait_exponential_jitter_multiplier (line 644) | def test_wait_exponential_jitter_multiplier(self) -> None: method test_wait_exponential_jitter_initial_deprecated (line 651) | def test_wait_exponential_jitter_initial_deprecated(self) -> None: method test_wait_exponential_jitter_initial_and_multiplier_raises (line 657) | def test_wait_exponential_jitter_initial_and_multiplier_raises(self) -... method test_wait_retry_state_attributes (line 661) | def test_wait_retry_state_attributes(self) -> None: class TestRetryConditions (line 707) | class TestRetryConditions(unittest.TestCase): method test_retry_if_result (line 708) | def test_retry_if_result(self) -> None: method test_retry_if_not_result (line 718) | def test_retry_if_not_result(self) -> None: method test_retry_any (line 728) | def test_retry_any(self) -> None: method test_retry_all (line 743) | def test_retry_all(self) -> None: method test_retry_and (line 758) | def test_retry_and(self) -> None: method test_retry_or (line 772) | def test_retry_or(self) -> None: method test_retry_or_with_plain_function (line 786) | def test_retry_or_with_plain_function(self) -> None: method test_retry_and_with_plain_function (line 803) | def test_retry_and_with_plain_function(self) -> None: method test_retry_or_coalesces (line 820) | def test_retry_or_coalesces(self) -> None: method test_retry_and_coalesces (line 830) | def test_retry_and_coalesces(self) -> None: method _raise_try_again (line 840) | def _raise_try_again(self) -> None: method test_retry_try_again (line 845) | def test_retry_try_again(self) -> None: method test_retry_try_again_forever (line 852) | def test_retry_try_again_forever(self) -> None: method test_retry_try_again_forever_reraise (line 860) | def test_retry_try_again_forever_reraise(self) -> None: method test_retry_if_exception_message_negative_no_inputs (line 872) | def test_retry_if_exception_message_negative_no_inputs(self) -> None: method test_retry_if_exception_message_negative_too_many_inputs (line 876) | def test_retry_if_exception_message_negative_too_many_inputs(self) -> ... class NoneReturnUntilAfterCount (line 881) | class NoneReturnUntilAfterCount: method __init__ (line 884) | def __init__(self, count: int) -> None: method go (line 888) | def go(self) -> typing.Any: class NoIOErrorAfterCount (line 899) | class NoIOErrorAfterCount: method __init__ (line 902) | def __init__(self, count: int) -> None: method go (line 906) | def go(self) -> typing.Any: class NoNameErrorAfterCount (line 917) | class NoNameErrorAfterCount: method __init__ (line 920) | def __init__(self, count: int) -> None: method go (line 924) | def go(self) -> typing.Any: class NoNameErrorCauseAfterCount (line 935) | class NoNameErrorCauseAfterCount: method __init__ (line 938) | def __init__(self, count: int) -> None: method go2 (line 942) | def go2(self) -> typing.Any: method go (line 945) | def go(self) -> typing.Any: class NoIOErrorCauseAfterCount (line 960) | class NoIOErrorCauseAfterCount: method __init__ (line 963) | def __init__(self, count: int) -> None: method go2 (line 967) | def go2(self) -> typing.Any: method go (line 970) | def go(self) -> typing.Any: class NameErrorUntilCount (line 985) | class NameErrorUntilCount: method __init__ (line 990) | def __init__(self, count: int) -> None: method go (line 994) | def go(self) -> typing.Any: class IOErrorUntilCount (line 1005) | class IOErrorUntilCount: method __init__ (line 1008) | def __init__(self, count: int) -> None: method go (line 1012) | def go(self) -> typing.Any: class CustomError (line 1023) | class CustomError(Exception): method __init__ (line 1034) | def __init__(self, value: str) -> None: method __str__ (line 1037) | def __str__(self) -> str: class NoCustomErrorAfterCount (line 1041) | class NoCustomErrorAfterCount: method __init__ (line 1046) | def __init__(self, count: int) -> None: method go (line 1050) | def go(self) -> typing.Any: class CapturingHandler (line 1061) | class CapturingHandler(logging.Handler): method __init__ (line 1064) | def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: method emit (line 1068) | def emit(self, record: logging.LogRecord) -> None: function current_time_ms (line 1072) | def current_time_ms() -> int: function _retryable_test_with_wait (line 1080) | def _retryable_test_with_wait(thing: typing.Any) -> typing.Any: function _retryable_test_with_stop (line 1088) | def _retryable_test_with_stop(thing: typing.Any) -> typing.Any: function _retryable_test_with_exception_cause_type (line 1093) | def _retryable_test_with_exception_cause_type(thing: typing.Any) -> typi... function _retryable_test_with_exception_type_io (line 1098) | def _retryable_test_with_exception_type_io(thing: typing.Any) -> typing.... function _retryable_test_if_not_exception_type_io (line 1103) | def _retryable_test_if_not_exception_type_io(thing: typing.Any) -> typin... function _retryable_test_with_exception_type_io_attempt_limit (line 1110) | def _retryable_test_with_exception_type_io_attempt_limit( function _retryable_test_with_unless_exception_type_name (line 1117) | def _retryable_test_with_unless_exception_type_name(thing: typing.Any) -... function _retryable_test_with_unless_exception_type_name_attempt_limit (line 1125) | def _retryable_test_with_unless_exception_type_name_attempt_limit( function _retryable_test_with_unless_exception_type_no_input (line 1132) | def _retryable_test_with_unless_exception_type_no_input( function _retryable_test_if_exception_message_message (line 1144) | def _retryable_test_if_exception_message_message(thing: typing.Any) -> t... function _retryable_test_if_not_exception_message_message (line 1153) | def _retryable_test_if_not_exception_message_message(thing: typing.Any) ... function _retryable_test_if_exception_message_match (line 1162) | def _retryable_test_if_exception_message_match(thing: typing.Any) -> typ... function _retryable_test_if_not_exception_message_match (line 1171) | def _retryable_test_if_not_exception_message_match(thing: typing.Any) ->... function _retryable_test_not_exception_message_delay (line 1180) | def _retryable_test_not_exception_message_delay(thing: typing.Any) -> ty... function _retryable_default (line 1185) | def _retryable_default(thing: typing.Any) -> typing.Any: function _retryable_default_f (line 1190) | def _retryable_default_f(thing: typing.Any) -> typing.Any: function _retryable_test_with_exception_type_custom (line 1195) | def _retryable_test_with_exception_type_custom(thing: typing.Any) -> typ... function _retryable_test_with_exception_type_custom_attempt_limit (line 1203) | def _retryable_test_with_exception_type_custom_attempt_limit( class TestDecoratorWrapper (line 1209) | class TestDecoratorWrapper(unittest.TestCase): method test_with_wait (line 1210) | def test_with_wait(self) -> None: method test_with_stop_on_return_value (line 1217) | def test_with_stop_on_return_value(self) -> None: method test_with_stop_on_exception (line 1227) | def test_with_stop_on_exception(self) -> None: method test_retry_if_exception_of_type (line 1235) | def test_retry_if_exception_of_type(self) -> None: method test_retry_except_exception_of_type (line 1256) | def test_retry_except_exception_of_type(self) -> None: method test_retry_until_exception_of_type_attempt_number (line 1268) | def test_retry_until_exception_of_type_attempt_number(self) -> None: method test_retry_until_exception_of_type_no_type (line 1280) | def test_retry_until_exception_of_type_no_type(self) -> None: method test_retry_until_exception_of_type_wrong_exception (line 1295) | def test_retry_until_exception_of_type_wrong_exception(self) -> None: method test_retry_if_exception_message (line 1306) | def test_retry_if_exception_message(self) -> None: method test_retry_if_not_exception_message (line 1315) | def test_retry_if_not_exception_message(self) -> None: method test_retry_if_not_exception_message_delay (line 1326) | def test_retry_if_not_exception_message_delay(self) -> None: method test_retry_if_exception_message_match (line 1336) | def test_retry_if_exception_message_match(self) -> None: method test_retry_if_not_exception_message_match (line 1344) | def test_retry_if_not_exception_message_match(self) -> None: method test_retry_if_exception_cause_type (line 1355) | def test_retry_if_exception_cause_type(self) -> None: method test_retry_preserves_argument_defaults (line 1366) | def test_retry_preserves_argument_defaults(self) -> None: method test_defaults (line 1388) | def test_defaults(self) -> None: method test_retry_function_object (line 1394) | def test_retry_function_object(self) -> None: method test_retry_function_attributes (line 1411) | def test_retry_function_attributes(self) -> None: class TestStatisticsKeys (line 1453) | class TestStatisticsKeys: method test_delay_since_first_attempt_available_on_first_attempt (line 1454) | def test_delay_since_first_attempt_available_on_first_attempt(self) ->... class TestEnabled (line 1470) | class TestEnabled: method test_enabled_false_skips_retry (line 1471) | def test_enabled_false_skips_retry(self) -> None: method test_enabled_false_preserves_attributes (line 1485) | def test_enabled_false_preserves_attributes(self) -> None: method test_enabled_false_via_retry_with (line 1497) | def test_enabled_false_via_retry_with(self) -> None: method test_enabled_true_retries_normally (line 1512) | def test_enabled_true_retries_normally(self) -> None: class TestRetryWith (line 1528) | class TestRetryWith: method test_redefine_wait (line 1529) | def test_redefine_wait(self) -> None: method test_redefine_stop (line 1538) | def test_redefine_stop(self) -> None: method test_retry_error_cls_should_be_preserved (line 1544) | def test_retry_error_cls_should_be_preserved(self) -> None: method test_retry_error_callback_should_be_preserved (line 1554) | def test_retry_error_callback_should_be_preserved(self) -> None: class TestBeforeAfterAttempts (line 1566) | class TestBeforeAfterAttempts(unittest.TestCase): method test_before_attempts (line 1569) | def test_before_attempts(self) -> None: method test_after_attempts (line 1587) | def test_after_attempts(self) -> None: method test_before_sleep (line 1606) | def test_before_sleep(self) -> None: method _before_sleep_log_raises (line 1623) | def _before_sleep_log_raises( method test_before_sleep_log_raises (line 1652) | def test_before_sleep_log_raises(self) -> None: method test_before_sleep_log_raises_with_exc_info (line 1655) | def test_before_sleep_log_raises_with_exc_info(self) -> None: method test_before_sleep_log_returns (line 1687) | def test_before_sleep_log_returns(self, exc_info: bool = False) -> None: method test_before_sleep_log_returns_with_exc_info (line 1715) | def test_before_sleep_log_returns_with_exc_info(self) -> None: class TestReraiseExceptions (line 1719) | class TestReraiseExceptions(unittest.TestCase): method test_reraise_by_default (line 1720) | def test_reraise_by_default(self) -> None: method test_reraise_from_retry_error (line 1735) | def test_reraise_from_retry_error(self) -> None: method test_reraise_timeout_from_retry_error (line 1752) | def test_reraise_timeout_from_retry_error(self) -> None: method test_reraise_no_exception (line 1772) | def test_reraise_no_exception(self) -> None: class TestStatistics (line 1788) | class TestStatistics(unittest.TestCase): method test_stats (line 1789) | def test_stats(self) -> None: method test_stats_failing (line 1798) | def test_stats_failing(self) -> None: method test_retry_object_statistics_synced (line 1808) | def test_retry_object_statistics_synced(self) -> None: method test_retry_object_statistics_during_execution (line 1821) | def test_retry_object_statistics_during_execution(self) -> None: class TestRetryErrorCallback (line 1840) | class TestRetryErrorCallback(unittest.TestCase): method setUp (line 1841) | def setUp(self) -> None: method _callback (line 1845) | def _callback(self, fut: tenacity.Future) -> tenacity.Future: method test_retry_error_callback (line 1849) | def test_retry_error_callback(self) -> None: class TestContextManager (line 1873) | class TestContextManager(unittest.TestCase): method test_context_manager_retry_one (line 1874) | def test_context_manager_retry_one(self) -> None: method test_context_manager_on_error (line 1885) | def test_context_manager_on_error(self) -> None: method test_context_manager_retry_error (line 1900) | def test_context_manager_retry_error(self) -> None: method test_context_manager_reraise (line 1912) | def test_context_manager_reraise(self) -> None: class TestInvokeAsCallable (line 1928) | class TestInvokeAsCallable: method invoke (line 1932) | def invoke(retry: Retrying, f: typing.Callable[..., typing.Any]) -> ty... method test_retry_one (line 1940) | def test_retry_one(self) -> None: method test_on_error (line 1953) | def test_on_error(self) -> None: method test_retry_error (line 1970) | def test_retry_error(self) -> None: method test_reraise (line 1982) | def test_reraise(self) -> None: class TestRetryException (line 1998) | class TestRetryException(unittest.TestCase): method test_retry_error_is_pickleable (line 1999) | def test_retry_error_is_pickleable(self) -> None: class TestRetryTyping (line 2008) | class TestRetryTyping(unittest.TestCase): method test_retry_type_annotations (line 2009) | def test_retry_type_annotations(self) -> None: class TestMockingSleep (line 2031) | class TestMockingSleep: method _fail (line 2037) | def _fail(self) -> None: method _decorated_fail (line 2041) | def _decorated_fail(self) -> None: method mock_sleep (line 2045) | def mock_sleep( method test_decorated (line 2058) | def test_decorated(self, mock_sleep: typing.Any) -> None: method test_decorated_retry_with (line 2063) | def test_decorated_retry_with(self, mock_sleep: typing.Any) -> None: class TestPickle (line 2072) | class TestPickle(unittest.TestCase): method test_retrying_picklable (line 2073) | def test_retrying_picklable(self) -> None: method test_retrying_picklable_after_run (line 2081) | def test_retrying_picklable_after_run(self) -> None: method test_retry_strategies_picklable (line 2092) | def test_retry_strategies_picklable(self) -> None: method test_retrying_pickle_round_trip_works (line 2105) | def test_retrying_pickle_round_trip_works(self) -> None: FILE: tests/test_tornado.py function _retryable_coroutine (line 28) | def _retryable_coroutine(thing: NoIOErrorAfterCount) -> Generator[Any, A... function _retryable_coroutine_with_2_attempts (line 35) | def _retryable_coroutine_with_2_attempts( class TestTornado (line 42) | class TestTornado(testing.AsyncTestCase): method test_retry (line 44) | def test_retry(self) -> Generator[Any, Any, None]: method test_stop_after_attempt (line 51) | def test_stop_after_attempt(self) -> Generator[Any, Any, None]: method test_repr (line 59) | def test_repr(self) -> None: method test_old_tornado (line 62) | def test_old_tornado(self) -> None: FILE: tests/test_utils.py function test_is_coroutine_callable (line 6) | def test_is_coroutine_callable() -> None: function test_find_ordinal (line 44) | def test_find_ordinal() -> None: