File: //usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/isin.cpython-310.pyc
o
(]^� � @ sz d dl mZmZ d dlmZ d dlmZ d dlmZ dZ dZ
dZed�ZG d d
� d
ee �Z
dee dee fd
d�ZdS )� )�Sequence�TypeVar)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc @ sF e Zd Zdee ddfdd�Zdedefdd�Zd eddfd
d�Z dS )�IsIn�sequence�returnNc C s
|| _ d S �N�r )�selfr � r �B/usr/lib/python3/dist-packages/hamcrest/library/collection/isin.py�__init__ �
z
IsIn.__init__�itemc C s
|| j v S r r )r
r r r r �_matches r z
IsIn._matches�descriptionc C s |� d��ddd| j� d S )Nzone of �(z, �))�append_text�append_listr )r
r r r r �describe_to s zIsIn.describe_to)
�__name__�
__module__�__qualname__r r r �boolr r r r r r r r s r r r
c C s 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 r r r �is_in s r N)�typingr r �hamcrest.core.base_matcherr �hamcrest.core.descriptionr �hamcrest.core.matcherr �
__author__�
__copyright__�__license__r r r r r r r �<module> s