U
    
cH                     @   s`   d dl Z d dlmZ e jr.d dlZd dlmZ dddddZdee jdgdf d	d
dZ	dS )    N)_utils)RetryCallStater   retry_statereturnc                 C   s   dS )z'Before call strategy that does nothing.N r   r   r   3/tmp/pip-unpacked-wheel-0v66f9d_/tenacity/before.pybefore_nothing   s    r
   zlogging.Logger)logger	log_levelr   c                    s   ddd fdd}|S )z:Before call strategy that logs to some logger the attempt.r   Nr   c              	      s.     dt| j dt| j d d S )NzStarting call to 'z', this is the z time calling it.)logr   Zget_callback_namefnZ
to_ordinalattempt_numberr   r   r   r   r	   log_it"   s     zbefore_log.<locals>.log_itr   )r   r   r   r   r   r	   
before_log   s    r   )
typingZtenacityr   TYPE_CHECKINGloggingr   r
   intCallabler   r   r   r   r	   <module>   s   