| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/hamcrest/core/core/__pycache__/ |
Upload File : |
�
���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"