PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/tenacity/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/tenacity/__pycache__/stop.cpython-39.pyc

a

��Re�
�@s�ddlZddlZejr*ddlZddlmZGdd�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@sFeZdZdZejded�dd��Zddd�dd	�Zdd
d�dd�Z	d
S)�	stop_basez(Abstract base class for stop strategies.r��retry_state�returncCsdS�N���selfrrr��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/tenacity/stop.py�__call__szstop_base.__call__�stop_all)�otherrcCs
t||�Sr)r
�r
rrrr�__and__ szstop_base.__and__�stop_anycCs
t||�Sr)rrrrr�__or__#szstop_base.__or__N)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolrrrrrrrrs
rc@s0eZdZdZedd�dd�Zded�dd	�ZdS)
rz+Stop if any of the stop condition is valid.N��stopsrcGs
||_dSr�r�r
rrrr�__init__*szstop_any.__init__rrcst�fdd�|jD��S)Nc3s|]}|��VqdSrr��.0�x�rrr�	<genexpr>.�z$stop_any.__call__.<locals>.<genexpr>)�anyrr	rr"rr-szstop_any.__call__�rrrrrrrrrrrrr'src@s0eZdZdZedd�dd�Zded�dd	�ZdS)
r
z*Stop if all the stop conditions are valid.NrcGs
||_dSrrrrrrr4szstop_all.__init__rrcst�fdd�|jD��S)Nc3s|]}|��VqdSrrrr"rrr#8r$z$stop_all.__call__.<locals>.<genexpr>)�allrr	rr"rr7szstop_all.__call__r&rrrrr
1sr
c@s eZdZdZded�dd�ZdS)�_stop_neverzNever stop.rrcCsdS)NFrr	rrrr>sz_stop_never.__call__N)rrrrrrrrrrr(;sr(c@s0eZdZdZddd�dd�Zded�d	d
�ZdS)�stop_when_event_setz!Stop when the given event is set.zthreading.EventN)�eventrcCs
||_dSr)r*)r
r*rrrrHszstop_when_event_set.__init__rrcCs
|j��Sr)r*�is_setr	rrrrKszstop_when_event_set.__call__)rrrrrrrrrrrr)Esr)c@s0eZdZdZedd�dd�Zded�dd	�ZdS)
�stop_after_attemptz.Stop when the previous attempt >= max_attempt.N)�max_attempt_numberrcCs
||_dSr)r-)r
r-rrrrRszstop_after_attempt.__init__rrcCs|j|jkSr)�attempt_numberr-r	rrrrUszstop_after_attempt.__call__)rrrr�intrrrrrrrr,Osr,c@s0eZdZdZedd�dd�Zded�dd	�ZdS)
�stop_after_delayz3Stop when the time from the first attempt >= limit.N)�	max_delayrcCs
||_dSr)r1)r
r1rrrr\szstop_after_delay.__init__rrcCs|j|jkSr)�seconds_since_startr1r	rrrr_szstop_after_delay.__call__)rrrr�floatrrrrrrrr0Ysr0)r�typing�
TYPE_CHECKING�	threading�pip._vendor.tenacityr�ABCrrr
r(�
stop_neverr)r,r0rrrr�<module>s




if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic