%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/hamcrest/core/core/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/hamcrest/core/core/__pycache__/isinstanceof.cpython-312.pyc

�

���e���~�ddlmZddlmZddlmZddlmZddlm	Z	dZ
dZdZGd	�d
ee
�Zdede	e
fd
�Zy)�)�Type)�BaseMatcher)�Description)�is_matchable_type)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc�<�eZdZdeddfd�Zdedefd�Zdeddfd�Z	y)	�IsInstanceOf�
expected_type�returnNc�>�t|�std��||_y)NzIsInstanceOf requires type)r�	TypeErrorr
)�selfr
s  �A/usr/lib/python3/dist-packages/hamcrest/core/core/isinstanceof.py�__init__zIsInstanceOf.__init__s�� ��/��8�9�9�*����itemc�.�t||j�S)N)�
isinstancer
)rrs  r�_matcheszIsInstanceOf._matchess���$�� 2� 2�3�3r�descriptionc�l�|jd�j|jj�y)Nzan instance of )�append_textr
�__name__)rrs  r�describe_tozIsInstanceOf.describe_tos(����� 1�2�>�>�t�?Q�?Q�?Z�?Z�[r)
r�
__module__�__qualname__rr�object�boolrrr�rrr	r	
s>��+�d�+�t�+�
4�V�4��4�\�{�\�t�\rr	�atyperc��t|�S)aHMatches if object is an instance of, or inherits from, a given type.

    :param atype: The type to compare against as the expected type.

    This matcher checks whether the evaluated object is an instance of
    ``atype`` or an instance of any class that inherits from ``atype``.

    Example::

        instance_of(str)

    )r	)r s r�instance_ofr"s�����rN)�typingr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rr	r"rrr�<module>r+sM���2�1�@�)�
�
�-�
�$��
\�;�v�&�
\�
�t�
����
r

Zerion Mini Shell 1.0