§
    
Á³gæ
  ã                   ó  — d dl Z d dlZej        r
d dlZd dlmZ  G d„ de j        ¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z	 G d	„ d
e¦  «        Z
 e
¦   «         Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )é    N)ÚRetryCallStatec                   óL   — e Zd ZdZej        dddefd„¦   «         Zdd„Zdd
„Z	dS )Ú	stop_basez(Abstract base class for stop strategies.Úretry_stater   Úreturnc                 ó   — d S ©N© ©Úselfr   s     úW/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/pip/_vendor/tenacity/stop.pyÚ__call__zstop_base.__call__   s   € àˆó    ÚotherÚstop_allc                 ó"   — t          | |¦  «        S r	   )r   ©r   r   s     r   Ú__and__zstop_base.__and__    ó   € Ý˜˜eÑ$Ô$Ð$r   Ústop_anyc                 ó"   — t          | |¦  «        S r	   )r   r   s     r   Ú__or__zstop_base.__or__#   r   r   N)r   r   r   r   )r   r   r   r   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚabstractmethodÚboolr   r   r   r
   r   r   r   r      ss   € € € € € Ø2Ð2àÔðÐ$4ð ¸ð ð ð ñ Ôðð%ð %ð %ð %ð%ð %ð %ð %ð %ð %r   r   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	r   z+Stop if any of the stop condition is valid.Ústopsr   Nc                 ó   — || _         d S r	   ©r!   ©r   r!   s     r   Ú__init__zstop_any.__init__*   ó   € ØˆŒ
ˆ
ˆ
r   r   r   c                 óD   ‡— t          ˆfd„| j        D ¦   «         ¦  «        S )Nc              3   ó.   •K  — | ]} |‰¦  «        V — Œd S r	   r
   ©Ú.0Úxr   s     €r   ú	<genexpr>z$stop_any.__call__.<locals>.<genexpr>.   ó+   øè è € Ð6Ð6 a�1�1�[‘>”>Ð6Ð6Ð6Ð6Ð6Ð6r   )Úanyr!   r   s    `r   r   zstop_any.__call__-   ó(   ø€ ÝÐ6Ð6Ð6Ð6¨4¬:Ð6Ñ6Ô6Ñ6Ô6Ð6r   ©r   r   r   r   r   r%   r   r   r
   r   r   r   r   '   s_   € € € € € Ø5Ð5ð˜yð ¨Tð ð ð ð ð7Ð$4ð 7¸ð 7ð 7ð 7ð 7ð 7ð 7r   r   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	r   z*Stop if all the stop conditions are valid.r!   r   Nc                 ó   — || _         d S r	   r#   r$   s     r   r%   zstop_all.__init__4   r&   r   r   r   c                 óD   ‡— t          ˆfd„| j        D ¦   «         ¦  «        S )Nc              3   ó.   •K  — | ]} |‰¦  «        V — Œd S r	   r
   r)   s     €r   r,   z$stop_all.__call__.<locals>.<genexpr>8   r-   r   )Úallr!   r   s    `r   r   zstop_all.__call__7   r/   r   r0   r
   r   r   r   r   1   s_   € € € € € Ø4Ð4ð˜yð ¨Tð ð ð ð ð7Ð$4ð 7¸ð 7ð 7ð 7ð 7ð 7ð 7r   r   c                   ó"   — e Zd ZdZdddefd„ZdS )Ú_stop_neverzNever stop.r   r   r   c                 ó   — dS )NFr
   r   s     r   r   z_stop_never.__call__>   s   € Øˆur   N)r   r   r   r   r   r   r
   r   r   r7   r7   ;   s=   € € € € € ØÐðÐ$4ð ¸ð ð ð ð ð ð r   r7   c                   ó*   — e Zd ZdZd
d„Zdddefd	„ZdS )Ústop_when_event_setz!Stop when the given event is set.Úeventúthreading.Eventr   Nc                 ó   — || _         d S r	   )r;   )r   r;   s     r   r%   zstop_when_event_set.__init__H   r&   r   r   r   c                 ó4   — | j                              ¦   «         S r	   )r;   Úis_setr   s     r   r   zstop_when_event_set.__call__K   s   € ØŒz× Ò Ñ"Ô"Ð"r   )r;   r<   r   N)r   r   r   r   r%   r   r   r
   r   r   r:   r:   E   sQ   € € € € € Ø+Ð+ðð ð ð ð#Ð$4ð #¸ð #ð #ð #ð #ð #ð #r   r:   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	Ústop_after_attemptz.Stop when the previous attempt >= max_attempt.Úmax_attempt_numberr   Nc                 ó   — || _         d S r	   )rB   )r   rB   s     r   r%   zstop_after_attempt.__init__R   s   € Ø"4ˆÔÐÐr   r   r   c                 ó"   — |j         | j        k    S r	   )Úattempt_numberrB   r   s     r   r   zstop_after_attempt.__call__U   s   € ØÔ)¨TÔ-DÒDÐDr   )r   r   r   r   Úintr%   r   r   r
   r   r   rA   rA   O   sg   € € € € € Ø8Ð8ð5¨3ð 5°4ð 5ð 5ð 5ð 5ðEÐ$4ð E¸ð Eð Eð Eð Eð Eð Er   rA   c                   ó2   — e Zd ZdZdeddfd„Zdddefd„ZdS )	Ústop_after_delayz3Stop when the time from the first attempt >= limit.Ú	max_delayr   Nc                 ó   — || _         d S r	   )rI   )r   rI   s     r   r%   zstop_after_delay.__init__\   s   € Ø"ˆŒˆˆr   r   r   c                 ó"   — |j         | j        k    S r	   )Úseconds_since_startrI   r   s     r   r   zstop_after_delay.__call___   s   € ØÔ.°$´.Ò@Ð@r   )r   r   r   r   Úfloatr%   r   r   r
   r   r   rH   rH   Y   sg   € € € € € Ø=Ð=ð# %ð #¨Dð #ð #ð #ð #ðAÐ$4ð A¸ð Að Að Að Að Að Ar   rH   )r   ÚtypingÚTYPE_CHECKINGÚ	threadingÚpip._vendor.tenacityr   ÚABCr   r   r   r7   Ú
stop_neverr:   rA   rH   r
   r   r   ú<module>rT      s“  ðð  €
€
€
Ø €€€à	Ôð 4ØÐÐÐà3Ð3Ð3Ð3Ð3Ð3ð%ð %ð %ð %ð %�”ñ %ô %ð %ð7ð 7ð 7ð 7ð 7ˆyñ 7ô 7ð 7ð7ð 7ð 7ð 7ð 7ˆyñ 7ô 7ð 7ðð ð ð ð �)ñ ô ð ð ˆ[‰]Œ]€
ð#ð #ð #ð #ð #˜)ñ #ô #ð #ðEð Eð Eð Eð E˜ñ Eô Eð EðAð Að Að Að A�yñ Aô Að Að Að Ar   