�
���e� � � � d dl mZmZ d dlmZ d dlmZ d dlmZ dZ dZ
dZ ed� Z G d � d
ee � Z
dee dee fd
�Zy)� )�Sequence�TypeVar)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc �B � e Zd Zdee ddfd�Zdedefd�Zdeddfd�Z y) �IsIn�sequence�returnNc � � || _ y �N�r )�selfr s �B/usr/lib/python3/dist-packages/hamcrest/library/collection/isin.py�__init__z
IsIn.__init__ s � � ��
� �itemc � � || j v S r r )r r s r �_matchesz
IsIn._matches s � ��t�}�}�$�$r �descriptionc �^ � |j d� j ddd| j � y )Nzone of �(z, �))�append_text�append_listr )r r s r �describe_tozIsIn.describe_to s% � ���� �*�6�6�s�D�#�t�}�}�Ur )
�__name__�
__module__�__qualname__r r r �boolr r r � r r r
r
sB � �!��!�� !�� !�%�Q� %�4� %�V�{� V�t� Vr r
r r 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
r s r �is_inr$ s � � ��>�r N)�typingr r �hamcrest.core.base_matcherr �hamcrest.core.descriptionr �hamcrest.core.matcherr �
__author__�
__copyright__�__license__r r
r$ r" |