Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/hamcrest/core/core/__pycache__/ |
Upload File : |
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