HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/1233/cwd/usr/lib/python3/dist-packages/hamcrest/core/core/__pycache__/anyof.cpython-310.pyc
o

(]^4�@s�ddlmZmZddlmZddlmZddlmZddl	m
Z
dZdZdZ
ed	�ZGd
d�dee�Zdee
eefd
e
efdd�ZdS)�)�TypeVar�Union)�BaseMatcher)�Description��wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc@sFeZdZdeeddfdd�Zdedefdd�Zd	eddfd
d�Z	dS)�AnyOf�matchers�returnNcGs
||_dS)N)r)�selfr�r�:/usr/lib/python3/dist-packages/hamcrest/core/core/anyof.py�__init__s
zAnyOf.__init__�itemcCs |jD]
}|�|�r
dSqdS)NTF)r�matches)r
r�matcherrrr�_matchess


�zAnyOf._matches�descriptioncCs|�ddd|j�dS)N�(z or �))�append_listr)r
rrrr�describe_toszAnyOf.describe_to)
�__name__�
__module__�__qualname__rr	r�boolrrrrrrrr
sr
�itemsrcGstdd�|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.

    cSsg|]}t|��qSrr)�.0rrrr�
<listcomp>*szany_of.<locals>.<listcomp>)r
)rrrr�any_ofs
r!N)�typingrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__r	r
r!rrrr�<module>s&