+
    iV	                     f    ^ RI t ^ RIHt ] P                  '       d   ^ RIHt R R ltRR R lltR# )	    N)_utils)RetryCallStatec                     V ^8  d   QhRRRR/#    retry_stater   returnN )formats   "h/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/tenacity/before_sleep.py__annotate__r      s     3 3&6 34 3    c                    R# )z(Before sleep strategy that does nothing.Nr
   )r   s   &r   before_sleep_nothingr      s    r   c                    V ^8  d   QhR\         P                  R\        R\        R\        R\
        P                  R.R3,          /# )r   logger	log_levelexc_info
sec_formatr	   r   N)r   LoggerProtocolintboolstrtypingCallable)r   s   "r   r   r      sR     * *!!** * 	*
 __&'-.*r   c                &   a aaa R VVV V3R llpV# )z;Before sleep strategy that logs to some logger the attempt.c                     V ^8  d   QhRRRR/# r   r
   )r   s   "r   r   &before_sleep_log.<locals>.__annotate__%   s      
  
,  
  
r   c                 p  < V P                   f   \        R4      hV P                  f   \        R4      hV P                   P                  '       d]   V P                   P	                  4       pRVP
                  P                   RV 2r2S'       d   V P                   P	                  4       pM RpMRV P                   P                  4       r2RpV P                  f   RpM \        P                  ! V P                  4      pSP                  SRV R	S	V P                  P                  ,           R
V RV R2	VR7       R # )Nz&log_it() called before outcome was setz*log_it() called before next_action was setraisedz: Freturnedz	<unknown>z	Retrying z in z seconds as it  .)r   )outcomeRuntimeErrornext_actionfailed	exception	__class____name__resultfnr   get_callback_namelogsleep)
r   exverbvaluelocal_exc_infofn_namer   r   r   r   s
   &     r   log_it before_sleep_log.<locals>.log_it%   s$    &GHH""*KLL%%%$$..0B"r||'<'<&=Rt$D%!,!4!4!>!>!@!&$k&9&9&@&@&B%"N>>!!G..{~~>G

y !{66<<<=_TFRSTYSZZ[]#	 	 	
r   r
   )r   r   r   r   r5   s   ffff r   before_sleep_logr7      s     
  
D Mr   )Fz%.3g)r   tenacityr   TYPE_CHECKINGr   r   r7   r
   r   r   <module>r:      s+   "  	'3* *r   