HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/isin.cpython-312.pyc
�

���e����ddlmZmZddlmZddlmZddlmZdZ	dZ
dZed�ZGd	�d
ee�Z
deedeefd
�Zy)�)�Sequence�TypeVar)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc�B�eZdZdeeddfd�Zdedefd�Zdeddfd�Z	y)	�IsIn�sequence�returnNc��||_y�N�r)�selfrs  �B/usr/lib/python3/dist-packages/hamcrest/library/collection/isin.py�__init__z
IsIn.__init__s	�� ��
��itemc��||jvSrr)rrs  r�_matchesz
IsIn._matchess���t�}�}�$�$r�descriptionc�^�|jd�jddd|j�y)Nzone of �(z, �))�append_text�append_listr)rrs  r�describe_tozIsIn.describe_tos%�����	�*�6�6�s�D�#�t�}�}�Ur)
�__name__�
__module__�__qualname__rrr�boolrrr�rrr
r
sB��!��!��!��!�%�Q�%�4�%�V�{�V�t�Vrr
rrc��t|�S)z�Matches if evaluated object is present in a given sequence.

    :param sequence: The sequence to search.

    This matcher invokes the ``in`` membership operator to determine if the
    evaluated object is a member of the sequence.

    )r
rs r�is_inr$s����>�rN)�typingrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rr
r$r"rr�<module>r,sV��$�2�1�)�
�
�-�
�$���C�L��V�;�q�>�V�	�H�Q�K�	�G�A�J�	r