File: //proc/self/root/usr/lib/python3/dist-packages/hamcrest/core/core/__pycache__/anyof.cpython-38.pyc
U
�b�VI � @ s@ d dl mZ d dlmZ dZdZdZG dd� de�Zdd � Zd
S )� )�BaseMatcher��wrap_matcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�AnyOfc G s
|| _ d S )N)�matchers)�selfr � r �:/usr/lib/python3/dist-packages/hamcrest/core/core/anyof.py�__init__ s zAnyOf.__init__c C s | j D ]}|�|�r dS qdS )NTF)r Zmatches)r �itemZmatcherr r r �_matches s
zAnyOf._matchesc C s |� ddd| j� d S )N�(z or �))Zappend_listr )r Zdescriptionr r r �describe_to s zAnyOf.describe_toN)�__name__�
__module__�__qualname__r
r r r r r r r s r c G s t dd� | D �� S )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.
c S s g | ]}t |��qS r r )�.0r r r r �
<listcomp>% s zany_of.<locals>.<listcomp>)r )�itemsr r r �any_of s
r N) Zhamcrest.core.base_matcherr Z"hamcrest.core.helpers.wrap_matcherr �
__author__Z
__copyright__Z__license__r r r r r r �<module> s