%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__/isnot.cpython-312.pyc

�

���e���V�ddlmZmZmZmZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZdZd	Zd
Zed�ZGd�d
ee�Zedede
efd��Zedede
efd��Zd�Zedede
efd��Zedee
eefde
efd��Zd�Zdee
eefde
efd�Zy)�)�Type�TypeVar�Union�overload)�BaseMatcher)�Description)�is_matchable_type�wrap_matcher)�Matcher�)�instance_ofzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Tc�V�eZdZdeeddfd�Zdedefd�Zdeddfd�Z	ded	eddfd
�Z
y)�IsNot�matcher�returnNc��||_y�N)r)�selfrs  �:/usr/lib/python3/dist-packages/hamcrest/core/core/isnot.py�__init__zIsNot.__init__s	������itemc�:�|jj|�Sr)r�matches)rrs  r�_matcheszIsNot._matchess���<�<�'�'��-�-�-r�descriptionc�X�|jd�j|j�y)Nznot )�append_text�append_description_ofr)rrs  r�describe_tozIsNot.describe_tos������'�=�=�d�l�l�Kr�mismatch_descriptionc�^�|jd�|jj||�y)Nzbut )rr�describe_match)rrr"s   r�describe_mismatchzIsNot.describe_mismatchs%���(�(��0����#�#�D�*>�?r)�__name__�
__module__�__qualname__rrr�boolrrr!r%�rrrrs`�����
��t��.�Q�.�4�.�L�{�L�t�L�@�a�@�{�@�t�@rr�xrc��yrr*�r+s r�_wrap_value_or_typer. ���rc��yrr*r-s rr.r.%r/rc�D�t|�rt|�St|�Sr)r	r
r
r-s rr.r.*s������1�~���A��r�matchc��yrr*�r2s r�is_notr51r/rc��yrr*r4s rr5r56r/rc�*�tt|��S)a�Inverts the given matcher to its logical negation.

    :param match: The matcher to negate.

    This matcher compares the evaluated object to the negation of the given
    matcher. If the ``match`` argument is not a matcher, it is implicitly
    wrapped in an :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to
    check for equality, and thus matches for inequality.

    Examples::

        assert_that(cheese, is_not(equal_to(smelly)))
        assert_that(cheese, is_not(smelly))

    )rr.r4s rr5r5;s�� �$�U�+�,�,rc��t|�S)z�Alias of :py:func:`is_not` for better readability of negations.

    Examples::

        assert_that(alist, not_(has_item(item)))

    )r5r4s r�not_r9Ns���%�=�rN)�typingrrrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�"hamcrest.core.helpers.wrap_matcherr	r
�hamcrest.core.matcherr�isinstanceofr
�
__author__�
__copyright__�__license__rr�objectr.r5r9r*rr�<module>rDs��1�1�2�1�N�)�%�
�
�-�
�$���C�L��@�K��N�@�
��4��G�F�O��
��
��1������
���
��$��7�6�?��
��
��%���
�A�
�&��7�1�:��
��-�&��g�a�j�!�m�$�����r

Zerion Mini Shell 1.0