HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_vendor/tenacity/__pycache__/stop.cpython-312.pyc
�

��h��J�ddlZddlZddlmZejr
ddlZddlmZGd�dej�ZejeejdgeffZGd�de�Z
Gd	�d
e�ZGd�de�Ze�ZGd
�de�ZGd�de�ZGd�de�Zy)�N)�_utils)�RetryCallStatec�N�eZdZdZej
dddefd��Zd	d�Zd
d�Z	y)�	stop_basez(Abstract base class for stop strategies.�retry_stater�returnc��y�N���selfrs  �;/usr/lib/python3/dist-packages/pip/_vendor/tenacity/stop.py�__call__zstop_base.__call__s���c��t||�Sr
)�stop_all�r
�others  r�__and__zstop_base.__and__"�����e�$�$rc��t||�Sr
)�stop_anyrs  r�__or__zstop_base.__or__%rrN)rrrr)rrrr)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolrrrrrrrrs6��2����
�$4�
��
��
�%�%rrrc�0�eZdZdZdeddfd�Zdddefd�Zy)	rz+Stop if any of the stop condition is valid.�stopsrNc��||_yr
�r"�r
r"s  r�__init__zstop_any.__init__/�	����
rrrc�@��t�fd�|jD��S)Nc3�.�K�|]}|�����y�wr
r��.0�xrs  �r�	<genexpr>z$stop_any.__call__.<locals>.<genexpr>3������6�a�1�[�>�6���)�anyr"rs `rrzstop_any.__call__2�����6�4�:�:�6�6�6r�rrrrrr&r rrrrrr,s,��5��y��T��7�$4�7��7rrc�0�eZdZdZdeddfd�Zdddefd�Zy)	rz*Stop if all the stop conditions are valid.r"rNc��||_yr
r$r%s  rr&zstop_all.__init__9r'rrrc�@��t�fd�|jD��S)Nc3�.�K�|]}|�����y�wr
rr*s  �rr-z$stop_all.__call__.<locals>.<genexpr>=r.r/)�allr"rs `rrzstop_all.__call__<r1rr2rrrrr6s,��4��y��T��7�$4�7��7rrc� �eZdZdZdddefd�Zy)�_stop_neverzNever stop.rrrc��y)NFrrs  rrz_stop_never.__call__Cs��rN)rrrrr rrrrr9r9@s����$4���rr9c�(�eZdZdZdd�Zdddefd�Zy)	�stop_when_event_setz!Stop when the given event is set.rNc��||_yr
)�event)r
r>s  rr&zstop_when_event_set.__init__Mr'rrrc�6�|jj�Sr
)r>�is_setrs  rrzstop_when_event_set.__call__Ps���z�z� � �"�"r)r>zthreading.EventrN)rrrrr&r rrrrr<r<Js��+��#�$4�#��#rr<c�0�eZdZdZdeddfd�Zdddefd�Zy)	�stop_after_attemptz.Stop when the previous attempt >= max_attempt.�max_attempt_numberrNc��||_yr
)rC)r
rCs  rr&zstop_after_attempt.__init__Ws
��"4��rrrc�4�|j|jk\Sr
)�attempt_numberrCrs  rrzstop_after_attempt.__call__Zs���)�)�T�-D�-D�D�Dr)rrrr�intr&r rrrrrBrBTs/��8�5�3�5�4�5�E�$4�E��ErrBc�D�eZdZdZdej
ddfd�Zdddefd�Zy)	�stop_after_delayz3Stop when the time from the first attempt >= limit.�	max_delayrNc�8�tj|�|_yr
)r�
to_secondsrJ)r
rJs  rr&zstop_after_delay.__init__as���*�*�9�5��rrrc�b�|j�td��|j|jk\S)Nz4__call__() called but seconds_since_start is not set)�seconds_since_start�RuntimeErrorrJrs  rrzstop_after_delay.__call__ds/���*�*�2��U�V�V��.�.�$�.�.�@�@r)	rrrrr�time_unit_typer&r rrrrrIrI^s5��=�6�&�"7�"7�6�D�6�A�$4�A��ArrI)r�typing�pip._vendor.tenacityr�
TYPE_CHECKING�	threadingr�ABCr�Union�Callabler �	StopBaseTrrr9�
stop_neverr<rBrIrrr�<module>rZs��� �
�'�	����3�%����%�
�L�L��F�O�O�5E�4F��4L�$M�M�N�	�7�y�7�7�y�7��)���]�
�#�)�#�E��E�	A�y�	Ar