관리-도구
편집 파일: stop.cpython-39.opt-1.pyc
a ����[��f� ����������������������@���s����d�dl�Z�d�dlZejr*d�dlZd�dlmZ�G�dd��de�j�ZG�dd��de�ZG�dd��de�Z G�d d ��d e�Z e ��ZG�dd��de�ZG�d d��de�Z G�dd��de�ZdS�)�����N)�RetryCallStatec�������������������@���sF���e�Zd�ZdZejded�dd��Zd�dd�dd �Zd�d d�dd�Z d S�)� stop_basez(Abstract base class for stop strategies.r�����retry_state�returnc�����������������C���s���d�S��N����selfr���r���r����=/usr/lib/python3.9/site-packages/pip/_vendor/tenacity/stop.py�__call__���s����zstop_base.__call__�stop_all)�otherr���c�����������������C���s ���t�|�|�S�r���)r ����r ���r���r���r���r����__and__ ���s����zstop_base.__and__�stop_anyc�����������������C���s ���t�|�|�S�r���)r���r���r���r���r����__or__#���s����zstop_base.__or__N) �__name__� __module__�__qualname__�__doc__�abc�abstractmethod�boolr���r���r���r���r���r���r���r������s ���r���c�������������������@���s0���e�Zd�ZdZedd�dd�Zded�dd �ZdS�) r���z+Stop if any of the stop condition is valid.N��stopsr���c�����������������G���s ���||�_�d�S�r����r����r ���r���r���r���r����__init__*���s����zstop_any.__init__r���r���c��������������������s���t���fdd�|�jD���S�)Nc�����������������3���s���|�]}|���V��qd�S�r���r�����.0�x�r���r���r���� <genexpr>.��������z$stop_any.__call__.<locals>.<genexpr>)�anyr���r ���r���r"���r���r���-���s����zstop_any.__call__�r���r���r���r���r���r���r���r���r���r���r���r���r���'���s���r���c�������������������@���s0���e�Zd�ZdZedd�dd�Zded�dd �ZdS�) r ���z*Stop if all the stop conditions are valid.Nr���c�����������������G���s ���||�_�d�S�r���r���r���r���r���r���r���4���s����zstop_all.__init__r���r���c��������������������s���t���fdd�|�jD���S�)Nc�����������������3���s���|�]}|���V��qd�S�r���r���r���r"���r���r���r#���8���r$���z$stop_all.__call__.<locals>.<genexpr>)�allr���r ���r���r"���r���r���7���s����zstop_all.__call__r&���r���r���r���r���r ���1���s���r ���c�������������������@���s ���e�Zd�ZdZded�dd�ZdS�)�_stop_neverzNever stop.r���r���c�����������������C���s���dS�)NFr���r ���r���r���r���r���>���s����z_stop_never.__call__N)r���r���r���r���r���r���r���r���r���r���r(���;���s���r(���c�������������������@���s0���e�Zd�ZdZddd�dd�Zded�d d �ZdS�)�stop_when_event_setz!Stop when the given event is set.zthreading.EventN)�eventr���c�����������������C���s ���||�_�d�S�r���)r*���)r ���r*���r���r���r���r���H���s����zstop_when_event_set.__init__r���r���c�����������������C���s ���|�j����S�r���)r*����is_setr ���r���r���r���r���K���s����zstop_when_event_set.__call__)r���r���r���r���r���r���r���r���r���r���r���r)���E���s���r)���c�������������������@���s0���e�Zd�ZdZedd�dd�Zded�dd �ZdS�) �stop_after_attemptz.Stop when the previous attempt >= max_attempt.N)�max_attempt_numberr���c�����������������C���s ���||�_�d�S�r���)r-���)r ���r-���r���r���r���r���R���s����zstop_after_attempt.__init__r���r���c�����������������C���s���|j�|�jkS�r���)Zattempt_numberr-���r ���r���r���r���r���U���s����zstop_after_attempt.__call__)r���r���r���r����intr���r���r���r���r���r���r���r,���O���s���r,���c�������������������@���s0���e�Zd�ZdZedd�dd�Zded�dd �ZdS�) �stop_after_delayz3Stop when the time from the first attempt >= limit.N)� max_delayr���c�����������������C���s ���||�_�d�S�r���)r0���)r ���r0���r���r���r���r���\���s����zstop_after_delay.__init__r���r���c�����������������C���s���|j�|�jkS�r���)Zseconds_since_startr0���r ���r���r���r���r���_���s����zstop_after_delay.__call__)r���r���r���r����floatr���r���r���r���r���r���r���r/���Y���s���r/���)r����typing� TYPE_CHECKING� threadingZpip._vendor.tenacityr����ABCr���r���r ���r(���Z stop_neverr)���r,���r/���r���r���r���r����<module>���s���