HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/hamcrest/core/core/__pycache__/isnot.cpython-38.pyc
U

�b�V��@s|ddlmZdZdZdZddlmZmZddlm	Z	m
Z
ddlmZdd	l
mZGd
d�de�Zdd
�Zdd�Zdd�ZdS)�)�absolute_importzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt)�BaseMatcher�Matcher)�wrap_matcher�is_matchable_type�)�equal_to)�instance_ofc@s$eZdZdd�Zdd�Zdd�ZdS)�IsNotcCs
||_dS�N)�matcher)�selfr�r�:/usr/lib/python3/dist-packages/hamcrest/core/core/isnot.py�__init__szIsNot.__init__cCs|j�|�Sr)rZmatches)r
�itemrrr�_matchesszIsNot._matchescCs|�d��|j�dS)Nznot )Zappend_textZappend_description_ofr)r
Zdescriptionrrr�describe_toszIsNot.describe_toN)�__name__�
__module__�__qualname__rrrrrrrr
sr
cCst|�rt|�St|�SdSr)rr	r)�xrrr�wrap_value_or_typesrcCs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))

    )r
r��matchrrr�is_notsrcCst|�S)z�Alias of :py:func:`is_not` for better readability of negations.

    Examples::

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

    )rrrrr�not_1srN)Z
__future__r�
__author__Z
__copyright__Z__license__Zhamcrest.core.base_matcherrrZ"hamcrest.core.helpers.wrap_matcherrrZisequalrZisinstanceofr	r
rrrrrrr�<module>s