o
    Ëý°j`  ã                   @   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„Zd	d
dede jdgdf fdd„Z	dS )é    N)Ú_utils)ÚRetryCallStateÚretry_stater   Úreturnc                 C   s   dS )z'Before call strategy that does nothing.N© ©r   r   r   úŽ/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/pip/_vendor/tenacity/before.pyÚbefore_nothing   s    r	   Úloggerzlogging.LoggerÚ	log_levelc                    s   d‡ ‡fdd„}|S )z:Before call strategy that logs to some logger the attempt.r   r   r   Nc              	      s.   ˆ  ˆ dt | j¡› dt | j¡› d�¡ d S )NzStarting call to 'z', this is the z time calling it.)Úlogr   Úget_callback_nameÚfnÚ
to_ordinalÚattempt_numberr   ©r   r
   r   r   Úlog_it"   s   
ÿþzbefore_log.<locals>.log_it©r   r   r   Nr   )r
   r   r   r   r   r   Ú
before_log   s   r   r   )
ÚtypingÚpip._vendor.tenacityr   ÚTYPE_CHECKINGÚloggingr   r	   ÚintÚCallabler   r   r   r   r   Ú<module>   s   
&