Ë
    ÉÓÐeh
  ã                   ój   — d dl mZmZmZ d dlmZ ddlmZ dZdZ	dZ
 ed«      Z G d	„ d
ee   e«      Zy)é    )ÚGenericÚOptionalÚTypeVar)ÚDescriptioné   )ÚSelfDescribingzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtÚTc                   óT   — e Zd ZdZd
dedee   defd„Zdededdfd„Z	dededdfd	„Z
y)Ú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.

    NÚitemÚmismatch_descriptionÚreturnc                 ó   — t        d«      ‚)a˜  Evaluates 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.
        :param mismatch_description:
        :returns: ``True`` if ``item`` matches, otherwise ``False``.

        Úmatches©ÚNotImplementedError©Úselfr   r   s      ú7/usr/lib/python3/dist-packages/hamcrest/core/matcher.pyr   zMatcher.matches   s   € ô " )Ó,Ð,ó    c                 ó   — t        d«      ‚)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_mismatchr   r   s      r   r   zMatcher.describe_mismatch*   s   € ô  "Ð"5Ó6Ð6r   Úmatch_descriptionc                 ó   — t        d«      ‚)aà  Generates a description of why the matcher has accepted the item.

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

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

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

        Údescribe_matchr   )r   r   r   s      r   r   zMatcher.describe_match<   s   € ô "Ð"2Ó3Ð3r   )N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   Úboolr   r   r   © r   r   r   r      s[   „ ññ-˜Að -°X¸kÑ5Jð -ÐVZó -ð7 að 7¸{ð 7Ètó 7ð$4 1ð 4¸ð 4Èô 4r   r   N)Útypingr   r   r   Úhamcrest.core.descriptionr   Úselfdescribingr   Ú
__author__Ú__copyright__Ú__license__r	   r   r!   r   r   ú<module>r(      s;   ðß -Ñ -å 1å *à€
Ø-€Ø$€áˆCƒL€ô<4ˆga‰j˜.õ <4r   