HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/hamcrest/core/core/__pycache__/issame.cpython-310.pyc
o

(]^@�@srddlmZddlmZddlmZddlmZdZdZ	dZ
ed�ZGd	d
�d
ee�Zdedeefd
d�Z
dS)�)�TypeVar)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc@sXeZdZdeddfdd�Zdedefdd�Zd	eddfd
d�Zdededdfd
d�Z	dS)�IsSame�obj�returnNcCs
||_dS�N��object)�selfr�r�;/usr/lib/python3/dist-packages/hamcrest/core/core/issame.py�__init__�
zIsSame.__init__�itemcCs
||juSr
r)r
rrrr�_matchesrzIsSame._matches�descriptioncCs,|�d��tt|j����d��|j�dS)Nzsame instance as � )�append_text�hex�idr�append_description_of)r
rrrr�describe_tos�zIsSame.describe_to�mismatch_descriptioncCs8|�d�|dur|�tt|����d�|�|�dS)Nzwas r)rrrr)r
rrrrr�describe_mismatchs
zIsSame.describe_mismatch)
�__name__�
__module__�__qualname__rr�boolrrrrrrrrrs
rrr	cCst|�S)aMatches 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)rrrr�
same_instance!s	r!N)�typingr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rrr!rrrr�<module>s