o
    (]^   ã                   @   sL   d dl Z d dlmZ d dlmZ d dlmZ dZdZdZ	G dd	„ d	eƒZ
dS )
é    N)ÚAny)ÚDescription)ÚSelfDescribingzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   @   s4   e Zd ZdZdeddfdd„Zdeddfdd	„ZdS )
ÚSelfDescribingValuea(  Wrap any value in a ``SelfDescribingValue`` to satisfy the
    :py:class:`~hamcrest.core.selfdescribing.SelfDescribing` interface.

    **Deprecated:** No need for this class now that
    :py:meth:`~hamcrest.core.description.Description.append_description_of`
    handles any type of value.

    ÚvalueÚreturnNc                 C   s   t  dt¡ || _d S )Nz$SelfDescribingValue no longer needed)ÚwarningsÚwarnÚDeprecationWarningr   )Úselfr   © r   úC/usr/lib/python3/dist-packages/hamcrest/core/selfdescribingvalue.pyÚ__init__   s   
zSelfDescribingValue.__init__Údescriptionc                 C   s   |  | j¡ dS )z%Generates a description of the value.N)Zappend_description_ofr   )r   r   r   r   r   Údescribe_to   s   zSelfDescribingValue.describe_to)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r      s    	r   )r   Útypingr   Zhamcrest.core.descriptionr   Zhamcrest.core.selfdescribingr   Ú
__author__Z__copyright__Z__license__r   r   r   r   r   Ú<module>   s    