File: //lib/python3/dist-packages/hamcrest/core/core/__pycache__/issame.cpython-310.pyc
o
(]^@ � @ sr d dl mZ d dlmZ d dlmZ d dlmZ dZdZ dZ
ed�ZG d d
� d
ee �Zdedee fd
d�Z
dS )� )�TypeVar)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc @ sX e Zd Zdeddfdd�Zdedefdd�Zd eddfd
d�Zdededdfd
d�Z dS )�IsSame�obj�returnNc C s
|| _ d S �N��object)�selfr � r �;/usr/lib/python3/dist-packages/hamcrest/core/core/issame.py�__init__ �
zIsSame.__init__�itemc C s
|| j u S r
r )r
r r r r �_matches r zIsSame._matches�descriptionc C s, |� d�� tt| j���� d��| j� d S )Nzsame instance as � )�append_text�hex�idr �append_description_of)r
r r r r �describe_to s �zIsSame.describe_to�mismatch_descriptionc C s8 |� d� |d ur|� tt|���� d� |�|� d S )Nzwas r )r r r r )r
r r r r r �describe_mismatch s
zIsSame.describe_mismatch)
�__name__�
__module__�__qualname__r r �boolr r r r r r r r r s
r r r c C s t | �S )a Matches if evaluated object is the same instance as a given object.
:param obj: The object to compare against as the expected value.
This matcher invokes the ``is`` identity operator to determine if the
evaluated object is the the same object as ``obj``.
)r )r r r r �
same_instance! s r! N)�typingr �hamcrest.core.base_matcherr �hamcrest.core.descriptionr �hamcrest.core.matcherr �
__author__�
__copyright__�__license__r r r! r r r r �<module> s