HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_vendor/tenacity/__pycache__/stop.cpython-37.pyc
B

L��g�@s�ddlZddlZddlmZejr6ddlZddlmZGdd�dej�Zej	eej
dgeffZGdd�de�Z
Gd	d
�d
e�ZGdd�de�Ze�ZGd
d�de�ZGdd�de�ZGdd�de�ZdS)�N)�_utils)�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�=/tmp/pip-unpacked-wheel-hv55ucu3/pip/_vendor/tenacity/stop.py�__call__szstop_base.__call__�stop_all)�otherrcCs
t||�S)N)r)rrrrr	�__and__"szstop_base.__and__�stop_anycCs
t||�S)N)r)rrrrr	�__or__%szstop_base.__or__N)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolr
r
rrrrr	rs
rrc@s0eZdZdZedd�dd�Zded�dd	�ZdS)
rz+Stop if any of the stop condition is valid.N)�stopsrcGs
||_dS)N)r)rrrrr	�__init__/szstop_any.__init__r)rrcst�fdd�|jD��S)Nc3s|]}|��VqdS)Nr)�.0�x)rrr	�	<genexpr>3sz$stop_any.__call__.<locals>.<genexpr>)�anyr)rrr)rr	r
2szstop_any.__call__)rrrrrrrr
rrrr	r,src@s0eZdZdZedd�dd�Zded�dd	�ZdS)
rz*Stop if all the stop conditions are valid.N)rrcGs
||_dS)N)r)rrrrr	r9szstop_all.__init__r)rrcst�fdd�|jD��S)Nc3s|]}|��VqdS)Nr)rr)rrr	r=sz$stop_all.__call__.<locals>.<genexpr>)�allr)rrr)rr	r
<szstop_all.__call__)rrrrrrrr
rrrr	r6src@s eZdZdZded�dd�ZdS)�_stop_neverzNever stop.r)rrcCsdS)NFr)rrrrr	r
Csz_stop_never.__call__N)rrrrrr
rrrr	r@src@s0eZdZdZddd�dd�Zded�d	d
�ZdS)�stop_when_event_setz!Stop when the given event is set.zthreading.EventN)�eventrcCs
||_dS)N)r )rr rrr	rMszstop_when_event_set.__init__r)rrcCs
|j��S)N)r �is_set)rrrrr	r
Pszstop_when_event_set.__call__)rrrrrrr
rrrr	rJsrc@s0eZdZdZedd�dd�Zded�dd	�ZdS)
�stop_after_attemptz.Stop when the previous attempt >= max_attempt.N)�max_attempt_numberrcCs
||_dS)N)r#)rr#rrr	rWszstop_after_attempt.__init__r)rrcCs|j|jkS)N)�attempt_numberr#)rrrrr	r
Zszstop_after_attempt.__call__)rrrr�intrrr
rrrr	r"Tsr"c@s2eZdZdZejdd�dd�Zded�dd	�ZdS)
�stop_after_delayz3Stop when the time from the first attempt >= limit.N)�	max_delayrcCst�|�|_dS)N)rZ
to_secondsr')rr'rrr	raszstop_after_delay.__init__r)rrcCs|jdkrtd��|j|jkS)Nz4__call__() called but seconds_since_start is not set)Zseconds_since_start�RuntimeErrorr')rrrrr	r
ds
zstop_after_delay.__call__)	rrrrrZtime_unit_typerrr
rrrr	r&^sr&)r�typingZpip._vendor.tenacityr�
TYPE_CHECKING�	threadingr�ABCr�Union�CallablerZ	StopBaseTrrrZ
stop_neverrr"r&rrrr	�<module>s