o
    (]^ì  ã                   @   sx   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deee ef d	ee fd
d„Zded	efdd„ZdS )é    )ÚTypeÚTypeVarÚUnion)ÚMatcher)Úequal_tozJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtÚTÚxÚreturnc                 C   s   t | tƒr| S t| ƒS )zÇWraps argument in a matcher, if necessary.

    :returns: the argument as-is if it is already a matcher, otherwise wrapped
        in an :py:func:`~hamcrest.core.core.isequal.equal_to` matcher.

    )Ú
isinstancer   r   )r   © r   úD/usr/lib/python3/dist-packages/hamcrest/core/helpers/wrap_matcher.pyÚwrap_matcher   s   
r   Úexpected_typec                 C   s   t | tƒrdS dS )NTF)r
   Útype)r   r   r   r   Úis_matchable_type   s   
r   N)Útypingr   r   r   Úhamcrest.core.base_matcherr   Úhamcrest.core.core.isequalr   Ú
__author__Ú__copyright__Ú__license__r   r   Úboolr   r   r   r   r   Ú<module>   s    "