
    e                         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
Zded	efdZy)    )TypeTypeVarUnion)Matcher)equal_tozJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtTxreturnc                 <    t        | t              r| S t        |       S )zWraps 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	   s    D/usr/lib/python3/dist-packages/hamcrest/core/helpers/wrap_matcher.pywrap_matcherr      s     !W{    expected_typec                 &    t        | t              ryy)NTF)r   type)r   s    r   is_matchable_typer      s    -&r   N)typingr   r   r   hamcrest.core.base_matcherr   hamcrest.core.core.isequalr   
__author____copyright____license__r   r   boolr    r   r   <module>r      s`    ' ' . /
-$CL
E'!*a-( 
WQZ 
T d r   