HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_vendor/tenacity/__pycache__/retry.cpython-312.pyc
�

��h*"����ddlZddlZddlZejrddlmZGd�dej�Zejeejdge
ffZGd�de�Ze�Z
Gd�d	e�Ze�ZGd
�de�ZGd�d
e�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�Zy) �N)�RetryCallStatec�N�eZdZdZej
dddefd��Zd	d�Zd
d�Z	y)�
retry_basez)Abstract base class for retry strategies.�retry_stater�returnc��y�N���selfrs  �</usr/lib/python3/dist-packages/pip/_vendor/tenacity/retry.py�__call__zretry_base.__call__s���c��t||�Sr	)�	retry_all�r�others  r
�__and__zretry_base.__and__ �����u�%�%rc��t||�Sr	)�	retry_anyrs  r
�__or__zretry_base.__or__#rrN)rrrr)rrrr)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolrrrr
rr
rrs6��3����
�$4�
��
��
�&�&rrrc� �eZdZdZdddefd�Zy)�_retry_neverz-Retry strategy that never rejects any result.rrrc��y)NFr
rs  r
rz_retry_never.__call__-s��rN�rrrrrrr
rr
r!r!*s��7��$4���rr!c� �eZdZdZdddefd�Zy)�
_retry_alwaysz.Retry strategy that always rejects any result.rrrc��y)NTr
rs  r
rz_retry_always.__call__7s��rNr#r
rr
r%r%4s��8��$4���rr%c�P�eZdZdZdej
egefddfd�Zdddefd�Z	y)	�retry_if_exceptionzARetry strategy that retries if an exception verifies a predicate.�	predicaterNc��||_yr	�r)�rr)s  r
�__init__zretry_if_exception.__init__A�	��"��rrrc���|j�td��|jjr8|jj�}|�td��|j	|�Sy)N�(__call__() called before outcome was set�(outcome failed but the exception is NoneF��outcome�RuntimeError�failed�	exceptionr)�rrr6s   r
rzretry_if_exception.__call__Dsa�����&��I�J�J����%�%�#�+�+�5�5�7�I�� �"�#M�N�N��>�>�)�,�,�r)
rrrr�typing�Callable�
BaseExceptionrr-rr
rr
r(r(>s<��K�#�&�/�/�=�/�4�2G�"H�#�T�#�
�$4�
��
rr(c���eZdZdZefdejejeejejedffddf�fd�
Z
�xZS)�retry_if_exception_typez=Retries if an exception has been raised of one or more types.�exception_types.rNc�:����|_t�|�	�fd��y)Nc���t|��Sr	��
isinstance��er=s �r
�<lambda>z2retry_if_exception_type.__init__.<locals>.<lambda>\s���:�a��#A�r�r=�superr-�rr=�	__class__s `�r
r-z retry_if_exception_type.__init__Ts��� /���
���A�Br�rrrr�	Exceptionr8�Union�Typer:�Tupler-�
__classcell__�rHs@r
r<r<Qs_���G�
�C�����K�K�
�&��L�L����]�3�S�8�9�
;�
�C�
�
C�Crr<c���eZdZdZefdejejeejejedffddf�fd�
Z
�xZS)�retry_if_not_exception_typezARetries except an exception has been raised of one or more types.r=.rNc�:����|_t�|�	�fd��y)Nc���t|��Sr	r@rBs �r
rDz6retry_if_not_exception_type.__init__.<locals>.<lambda>j����z�!�_�'E�#E�rrErGs `�r
r-z$retry_if_not_exception_type.__init__b���� /���
���E�FrrIrOs@r
rQrQ_s_���K�
�G�����K�K�
�&��L�L����]�3�S�8�9�
;�
�G�
�
G�GrrQc���eZdZdZefdejejeejejedffddf�fd�
Z
dddefd	�Z�xZ
S)
�retry_unless_exception_typez:Retries until an exception is raised of one or more types.r=.rNc�:����|_t�|�	�fd��y)Nc���t|��Sr	r@rBs �r
rDz6retry_unless_exception_type.__init__.<locals>.<lambda>xrTrrErGs `�r
r-z$retry_unless_exception_type.__init__prUrrrc���|j�td��|jjsy|jj�}|�td��|j	|�S�Nr0Tr1r2r7s   r
rz$retry_unless_exception_type.__call__zsc�����&��I�J�J��"�"�)�)���'�'�1�1�3�	����I�J�J��~�~�i�(�(r)rrrrrJr8rKrLr:rMr-rrrNrOs@r
rWrWmsm���D�
�G�����K�K�
�&��L�L����]�3�S�8�9�
;�
�G�
�
G�)�$4�)��)rrWc��eZdZdZefdejejeejejedffddfd�Z
dddefd	�Zy)
�retry_if_exception_cause_typez�Retries if any of the causes of the raised exception is of one or more types.

    The check on the type of the cause of the exception is done recursively (until finding
    an exception in the chain that has no `__cause__`)
    r=.rNc��||_yr	)�exception_cause_types)rr=s  r
r-z&retry_if_exception_cause_type.__init__�s��&5��"rrrc��|j�td��|jjrL|jj�}|�0t	|j
|j�ry|j
}|��0y)Nz&__call__ called before outcome was setTF)r3r4r5r6rA�	__cause__r_)rr�excs   r
rz&retry_if_exception_cause_type.__call__�sn�����&��G�H�H����%�%��%�%�/�/�1�C��/��c�m�m�T�-G�-G�H���m�m���/�
r)
rrrrrJr8rKrLr:rMr-rrr
rr
r]r]�sk���
�5�����K�K�
�&��L�L����]�3�S�8�9�
;�
�5�
�
5��$4���rr]c�d�eZdZdZdej
ejgefddfd�Zdddefd�Z	y)	�retry_if_resultz+Retries if the result verifies a predicate.r)rNc��||_yr	r+r,s  r
r-zretry_if_result.__init__�r.rrrc��|j�td��|jjs)|j|jj	��Sy�Nr0F�r3r4r5r)�resultrs  r
rzretry_if_result.__call__�sJ�����&��I�J�J��"�"�)�)��>�>�+�"5�"5�"<�"<�">�?�?�r�
rrrrr8r9�Anyrr-rr
rr
rdrd�s@��5�#�&�/�/�6�:�:�,��2D�"E�#�$�#��$4���rrdc�d�eZdZdZdej
ejgefddfd�Zdddefd�Z	y)	�retry_if_not_resultz*Retries if the result refutes a predicate.r)rNc��||_yr	r+r,s  r
r-zretry_if_not_result.__init__�r.rrrc��|j�td��|jjs*|j|jj	��Syrgrhrs  r
rzretry_if_not_result.__call__�sM�����&��I�J�J��"�"�)�)��~�~�k�&9�&9�&@�&@�&B�C�C�C�rrjr
rr
rmrm�s@��4�#�&�/�/�6�:�:�,��2D�"E�#�$�#��$4���rrmc�j��eZdZdZ		ddej
edej
eddf�fd�
Z�xZS)�retry_if_exception_messagez2Retries if an exception message equals or matches.N�message�matchrc�>�����r$|r"t|jj�d����rdtdtf�fd�}|}nN|r*tj|��dtdtf�fd�}|}n"t|jj�d���t�|�!|�y)Nz.() takes either 'message' or 'match', not bothr6rc� ���t|�k(Sr	)�str)r6rrs �r
�message_fncz8retry_if_exception_message.__init__.<locals>.message_fnc�s����#�i�.�0�0rc�J��t�jt|���Sr	)rrsrv)r6�progs �r
�	match_fncz6retry_if_exception_message.__init__.<locals>.match_fnc�s����D�J�J�s�9�~�6�7�7rz3() missing 1 required argument 'message' or 'match')	�	TypeErrorrHrr:r�re�compilerFr-)rrrrsrwr)rzryrHs `    @�r
r-z#retry_if_exception_message.__init__�s����
�u��t�~�~�6�6�7�7e�f�g�g��
1�}�
1��
1�$�I�
��:�:�e�$�D�
8�]�
8�t�
8�"�I��t�~�~�6�6�7�7j�k�l�l�
����#r�NN)	rrrrr8�Optionalrvr-rNrOs@r
rqrq�sF���<�)-�&*�$�����%�$����s�#�$�
�	$�$rrqc�z��eZdZdZ		d
dej
edej
eddf�fd�
Zdddefd	�Z	�xZ
S)�retry_if_not_exception_messagez5Retries until an exception message equals or matches.Nrrrsrc�T���t�|�||�|j��fd�|_y)Nc����|i|��Sr	r
)�args_�kwargs_�if_predicates  �r
rDz9retry_if_not_exception_message.__init__.<locals>.<lambda>�s���|�U�7V�g�7V�3V�r)rFr-r))rrrrsr�rHs   @�r
r-z'retry_if_not_exception_message.__init__�s$���
	����%�(��~�~��V��rrrc���|j�td��|jjsy|jj�}|�td��|j	|�Sr[r2r7s   r
rz'retry_if_not_exception_message.__call__�sa�����&��I�J�J��"�"�)�)���'�'�1�1�3�	����I�J�J��~�~�i�(�(rr~)rrrrr8rrvr-rrrNrOs@r
r�r��sY���?�)-�&*�W�����%�W����s�#�W�
�	W�
)�$4�
)��
)rr�c�0�eZdZdZdeddfd�Zdddefd�Zy)	rz1Retries if any of the retries condition is valid.�retriesrNc��||_yr	�r��rr�s  r
r-zretry_any.__init__�	����rrrc�@��t�fd�|jD��S)Nc3�.�K�|]}|�����y�wr	r
��.0�rrs  �r
�	<genexpr>z%retry_any.__call__.<locals>.<genexpr>������8�a�1�[�>�8���)�anyr�rs `r
rzretry_any.__call__�����8�4�<�<�8�8�8r�rrrrrr-rrr
rr
rr�s,��;������9�$4�9��9rrc�0�eZdZdZdeddfd�Zdddefd�Zy)	rz/Retries if all the retries condition are valid.r�rNc��||_yr	r�r�s  r
r-zretry_all.__init__r�rrrc�@��t�fd�|jD��S)Nc3�.�K�|]}|�����y�wr	r
r�s  �r
r�z%retry_all.__call__.<locals>.<genexpr>r�r�)�allr�rs `r
rzretry_all.__call__r�rr�r
rr
rr	s,��9������9�$4�9��9rr)rr|r8�
TYPE_CHECKING�pip._vendor.tenacityr�ABCrrKr9r�
RetryBaseTr!�retry_neverr%�retry_alwaysr(r<rQrWr]rdrmrqr�rrr
rr
�<module>r�s
��"�	�
�	���3�&����&��\�\�*�f�o�o�7G�6H�$�6N�&O�O�
P�
��:���n���J��������&C�0�C�G�"4�G�)�"4�)�6�J��<
�j�
� 
�*�
� $�!3�$�>)�%?�)�49�
�9�9�
�9r