/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/tenacity/__pycache__
� g c��t�� �� � d dl Z d dlZd dlZej rd dlmZ G d� de j � Zej eej dge f f Z G d� de� Z e� Z G d� d e� Z e� Z G d � de� Z G d� d e� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Zy) � N)�RetryCallStatec �N � e Zd ZdZej dddefd�� Zd d�Zd d�Z y)� retry_basez)Abstract base class for retry strategies.�retry_stater �returnc � � y �N� ��selfr s ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el9.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/tenacity/retry.py�__call__zretry_base.__call__ s � �� c � � t | |� S r )� retry_all�r �others r �__and__zretry_base.__and__ � � ���u�%�%r c � � t | |� S r )� retry_anyr s r �__or__zretry_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 s6 � �3���� �$4� �� � � �&�&r r r c � � e Zd ZdZdddefd�Zy)�_retry_neverz-Retry strategy that never rejects any result.r r r c � � y)NFr r s r r z_retry_never.__call__- s � �r N�r r r r r r r r r r! r! * s � �7��$4� �� r r! c � � e Zd ZdZdddefd�Zy)� _retry_alwaysz.Retry strategy that always rejects any result.r r r c � � y)NTr r s r r z_retry_always.__call__7 s � �r Nr# r r r r% r% 4 s � �8��$4� �� r r% c �P � e Zd ZdZdej egef ddfd�Zdddefd�Z y) �retry_if_exceptionzARetry strategy that retries if an exception verifies a predicate.� predicater Nc � � || _ y r �r) �r r) s r �__init__zretry_if_exception.__init__A � � �"��r r r c �� � |j �t d� �|j j r8|j j � }|�t d� �| j |� S y)N�(__call__() called before outcome was set�(outcome failed but the exception is NoneF��outcome�RuntimeError�failed� exceptionr) �r r r6 s r r zretry_if_exception.__call__D sa � ����&��I�J�J����%�%�#�+�+�5�5�7�I�� �"�#M�N�N��>�>�)�,�,�r ) r r r r �typing�Callable� BaseExceptionr r- r r r r r( r( >