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/__pycache__/matcher.cpython-38.pyc
U

�b�V;�@s8ddlmZddlmZdZdZdZGdd�de�Zd	S)
�)�absolute_import�)�SelfDescribingzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc@s"eZdZdZddd�Zdd�ZdS)�Matchera�A matcher over acceptable values.

    A matcher is able to describe itself to give feedback when it fails.

    Matcher implementations should *not* directly implement this protocol.
    Instead, *extend* the :py:class:`~hamcrest.core.base_matcher.BaseMatcher`
    class, which will ensure that the
    :py:class:`~hamcrest.core.matcher.Matcher` API can grow to support new
    features and remain compatible with all
    :py:class:`~hamcrest.core.matcher.Matcher` implementations.

    NcCstd��dS)asEvaluates the matcher for argument item.

        If a mismatch is detected and argument ``mismatch_description`` is
        provided, it will generate a description of why the matcher has not
        accepted the item.

        :param item: The object against which the matcher is evaluated.
        :returns: ``True`` if ``item`` matches, otherwise ``False``.

        �matchesN��NotImplementedError��self�itemZmismatch_description�r�7/usr/lib/python3/dist-packages/hamcrest/core/matcher.pyrszMatcher.matchescCstd��dS)a�Generates a description of why the matcher has not accepted the
        item.

        The description will be part of a larger description of why a matching
        failed, so it should be concise.

        This method assumes that ``matches(item)`` is ``False``, but will not
        check this.

        :param item: The item that the
            :py:class:`~hamcrest.core.matcher.Matcher` has rejected.
        :param mismatch_description: The description to be built or appended
            to.

        �describe_mismatchNrr	rrr
r$szMatcher.describe_mismatch)N)�__name__�
__module__�__qualname__�__doc__rrrrrr
r	s

rN)Z
__future__rZselfdescribingr�
__author__Z
__copyright__Z__license__rrrrr
�<module>s