File: //usr/lib/python3/dist-packages/hamcrest/core/__pycache__/description.cpython-310.pyc
o
(]^ � @ s2 d dl mZmZmZ dZdZdZG dd� d�ZdS )� )�Any�Iterable�SequencezJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc
@ sV e Zd ZdZdedd fdd�Zdedd fdd�Zd ed
ededee dd f
d
d�Z dS )�Descriptionz�A description of a :py:class:`~hamcrest.core.matcher.Matcher`.
A :py:class:`~hamcrest.core.matcher.Matcher` will describe itself to a
description which can later be used for reporting.
�text�returnc C � t d��)z_Appends some plain text to the description.
:returns: ``self``, for chaining
�append_text��NotImplementedError)�selfr � r
�;/usr/lib/python3/dist-packages/hamcrest/core/description.pyr s zDescription.append_text�valuec C r )z�Appends description of given value to this description.
If the value implements
:py:meth:`~hamcrest.core.selfdescribing.SelfDescribing.describe_to`,
then it will be used.
:returns: ``self``, for chaining
�append_description_ofr
)r r r
r
r r s
z!Description.append_description_of�start� separator�end�listc C r )az Appends a list of objects to the description.
:param start: String that will begin the list description.
:param separator: String that will separate each object in the
description.
:param end: String that will end the list description.
:param list: List of objects to be described.
:returns: ``self``, for chaining
�append_listr
)r r r r r r
r
r r $ s zDescription.append_listN)
�__name__�
__module__�__qualname__�__doc__�strr r r r r r
r
r
r r s �����r N)�typingr r r �
__author__�
__copyright__�__license__r r
r
r
r �<module> s