HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_vendor/tenacity/__pycache__/stop.cpython-310.pyc
o

@%Ne�
�@s�ddlZddlZejrddlZddlmZGdd�dej�ZGdd�de�ZGdd�de�Z	Gd	d
�d
e�Z
e
�ZGdd�de�ZGd
d�de�Z
Gdd�de�ZdS)�N)�RetryCallStatec@s<eZdZdZejdddefdd��Zdd	d
�Zddd
�Z	dS)�	stop_basez(Abstract base class for stop strategies.�retry_stater�returncCsdS�N���selfrrr�;/usr/lib/python3/dist-packages/pip/_vendor/tenacity/stop.py�__call__szstop_base.__call__�other�stop_allcC�
t||�Sr)r
�r	rrrr
�__and__ �
zstop_base.__and__�stop_anycCrr)rrrrr
�__or__#rzstop_base.__or__N)rrrr
)rrrr)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolrrrrrrr
rs
rc@�4eZdZdZdeddfdd�Zdddefd	d
�ZdS)rz+Stop if any of the stop condition is valid.�stopsrNcG�
||_dSr�r�r	rrrr
�__init__*rzstop_any.__init__rrc�t�fdd�|jD��S)Nc3��|]}|��VqdSrr��.0�x�rrr
�	<genexpr>.��z$stop_any.__call__.<locals>.<genexpr>)�anyrrrr&r
r-�zstop_any.__call__�rrrrrr rrrrrr
r'�rc@r)r
z*Stop if all the stop conditions are valid.rrNcGrrrrrrr
r 4rzstop_all.__init__rrcr!)Nc3r"rrr#r&rr
r'8r(z$stop_all.__call__.<locals>.<genexpr>)�allrrrr&r
r7r*zstop_all.__call__r+rrrr
r
1r,r
c@s"eZdZdZdddefdd�ZdS)�_stop_neverzNever stop.rrrcCsdS)NFrrrrr
r>sz_stop_never.__call__N)rrrrrrrrrr
r.;sr.c@s,eZdZdZddd�Zdd	defd
d�ZdS)
�stop_when_event_setz!Stop when the given event is set.�event�threading.EventrNcCrr)r0)r	r0rrr
r Hrzstop_when_event_set.__init__rrcCs
|j��Sr)r0�is_setrrrr
rKrzstop_when_event_set.__call__)r0r1rN)rrrrr rrrrrr
r/Es
r/c@r)�stop_after_attemptz.Stop when the previous attempt >= max_attempt.�max_attempt_numberrNcCrr)r4)r	r4rrr
r Rrzstop_after_attempt.__init__rrcC�|j|jkSr)�attempt_numberr4rrrr
rU�zstop_after_attempt.__call__)rrrr�intr rrrrrr
r3Or,r3c@r)�stop_after_delayz3Stop when the time from the first attempt >= limit.�	max_delayrNcCrr)r:)r	r:rrr
r \rzstop_after_delay.__init__rrcCr5r)�seconds_since_startr:rrrr
r_r7zstop_after_delay.__call__)rrrr�floatr rrrrrr
r9Yr,r9)r�typing�
TYPE_CHECKING�	threading�pip._vendor.tenacityr�ABCrrr
r.�
stop_neverr/r3r9rrrr
�<module>s