관리-도구
편집 파일: stop.cpython-38.pyc
U ʗRe� � @ 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 ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/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>. s z$stop_any.__call__.<locals>.<genexpr>)�anyr r r r"