Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.tenacity.before Namespace Reference

Functions

None before_nothing ("RetryCallState" retry_state)
 
typing.Callable[["RetryCallState"], Nonebefore_log ("logging.Logger" logger, int log_level)
 

Function Documentation

◆ before_log()

typing.Callable[["RetryCallState"], None] before_log ( "logging.Logger"  logger,
int  log_level 
)
Before call strategy that logs to some logger the attempt.

Definition at line 31 of file before.py.

31def before_log(logger: "logging.Logger", log_level: int) -> typing.Callable[["RetryCallState"], None]:
32 """Before call strategy that logs to some logger the attempt."""
33
34 def log_it(retry_state: "RetryCallState") -> None:
35 if retry_state.fn is None:
36 # NOTE(sileht): can't really happen, but we must please mypy
37 fn_name = "<unknown>"
38 else:
41 log_level,
42 f"Starting call to '{fn_name}', "
43 f"this is the {_utils.to_ordinal(retry_state.attempt_number)} time calling it.",
44 )
45
46 return log_it
for i

References i.

◆ before_nothing()

None before_nothing ( "RetryCallState"  retry_state)
Before call strategy that does nothing.

Definition at line 27 of file before.py.

27def before_nothing(retry_state: "RetryCallState") -> None:
28 """Before call strategy that does nothing."""
29
30