%PDF- %PDF-
Direktori : /lib/python3/dist-packages/hamcrest/core/core/__pycache__/ |
Current File : //lib/python3/dist-packages/hamcrest/core/core/__pycache__/anyof.cpython-312.pyc |
� ���e4 � � � d dl mZmZ d dlmZ d dlmZ d dlmZ d dl m Z dZdZdZ ed � Z G d � dee � Zdee e ef d e e fd�Zy)� )�TypeVar�Union)�BaseMatcher)�Description)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc �B � e Zd Zdee ddfd�Zdedefd�Zdeddfd�Z y) �AnyOf�matchers�returnNc � � || _ y )N)r )�selfr s �:/usr/lib/python3/dist-packages/hamcrest/core/core/anyof.py�__init__zAnyOf.__init__ s � � �� � �itemc �L � | j D ] }|j |� s� y y)NTF)r �matches)r r �matchers r �_matcheszAnyOf._matches s) � ��}�}� �G����t�$�� � r �descriptionc �@ � |j ddd| j � y )N�(z or �))�append_listr )r r s r �describe_tozAnyOf.describe_to s � �����V�S�$�-�-�@r ) �__name__� __module__�__qualname__r r r �boolr r r � r r r r sB � �!�'�!�*� !�� !��Q� �4� �A�{� A�t� Ar r �itemsr c �J � t | D �cg c] }t |� �� c}� S c c}w )a� Matches if any of the given matchers evaluate to ``True``. :param matcher1,...: A comma-separated list of matchers. The matchers are evaluated from left to right using short-circuit evaluation, so evaluation stops as soon as a matcher returns ``True``. Any argument that is not a matcher is implicitly wrapped in an :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for equality. )r r )r# r s r �any_ofr% s"