![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/hamcrest/library/collection/__pycache__/ |
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