�
��g � �t � d dl Z d dlmZ e j r
d dlZd dlmZ dd�Zdd d
ede j dgdf fd�Z dS )
� N)�_utils)�RetryCallState�retry_stater �returnc � � dS )z'Before call strategy that does nothing.N� )r s �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/tenacity/before.py�before_nothingr
s � � � � �loggerzlogging.Logger� log_levelc � � �� d�� fd�}|S )z:Before call strategy that logs to some logger the attempt.r r r Nc � �� | j �d}nt j | j � � }�� �d|� dt j | j � � � d�� � d S )Nz <unknown>zStarting call to 'z', this is the z time calling it.)�fnr �get_callback_name�log�
to_ordinal�attempt_number)r �fn_namer
r s ��r �log_itzbefore_log.<locals>.log_it$ s~ �� ��>�!�!�G�G��.�{�~�>�>�G��
�
��
\��
\�
\�!�,�[�-G�H�H�
\�
\�
\�
�
�
�
�
r �r r r Nr )r r
r s `` r �
before_logr s. ��� �
�
�
�
�
�
�
� �Mr r )
�typing�tenacityr �
TYPE_CHECKING�loggingr r
�int�Callabler r r r �<module>r s� ��"