K iddlZddlmZejr ddlZddlmZd dZddd edejdgdffd Z y) N)_utils)RetryCallStaterreturncy)z'Before call strategy that does nothing.N) retry_states U/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/tenacity/before.pybefore_nothingr sloggerzlogging.Logger log_levelcdfd }|S)z:Before call strategy that logs to some logger the attempt.c |jd}ntj|j}jd|dtj|j dy)Nz zStarting call to 'z', this is the z time calling it.)fnrget_callback_namelog to_ordinalattempt_number)rfn_namer r s r log_itzbefore_log..log_it$sa >> !!G..{~~>G   *!,,[-G-GHIIZ \ r rrrNr)r r rs`` r before_logrs   Mr r) typingtenacityr TYPE_CHECKINGloggingrr intCallablerrr r rsP" '2 ), __&'-.r