+
    bVi                         ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
 RtRtRt]! R	4      t ! R
 R]],          4      tR# )    )shorten)OptionalTypeVar)Description)MatchertostringzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtTc                      a  ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltRV 3R	 lR
 lltV 3R lR lt	V 3R lR lt
RtV tR# )BaseMatcherar  Base class for all :py:class:`~hamcrest.core.matcher.Matcher`
implementations.

Most implementations can just implement :py:obj:`_matches`, leaving the
handling of any mismatch description to the ``matches`` method. But if it
makes more sense to generate the mismatch description during the matching,
override :py:meth:`~hamcrest.core.matcher.Matcher.matches` instead.

c                    < V ^8  d   QhRS[ /#    returnstr)format__classdict__s   "</usr/lib/python3/dist-packages/hamcrest/core/base_matcher.py__annotate__BaseMatcher.__annotate__   s           c                    \        V 4      # Nr   selfs   &r   __str__BaseMatcher.__str__   s    ~r   c                    < V ^8  d   QhRS[ /# r   r   )r   r   s   "r   r   r      s     
 
# 
r   c           	     x    RP                  V P                  P                  \        \	        V 4      ^<RR7      4      # )z&Returns matcher string representation.z
<{0}({1})>z...)placeholder)r   	__class____name__r   r	   r   s   &r   __repr__BaseMatcher.__repr__   s1    ""NN##WXd^RU%S
 	
r   c                &   < V ^8  d   QhRS[ RS[/# )r   itemr   )r
   bool)r   r   s   "r   r   r   #   s     . .Q .4 .r   c                    \        R 4      h)_matches)NotImplementedError)r   r'   s   &&r   r*   BaseMatcher._matches#   s    !*--r   Nc                <   < V ^8  d   QhRS[ RS[S[,          RS[/# )r   r'   mismatch_descriptionr   )r
   r   r   r(   )r   r   s   "r   r   r   &   s(      A Xk5J VZ r   c                j    V P                  V4      pV'       g   V'       d   V P                  W4       V# r   )r*   describe_mismatch)r   r'   r.   match_results   &&& r   matchesBaseMatcher.matches&   s*    }}T* 4""4>r   c                *   < V ^8  d   QhRS[ RS[RR/# )r   r'   r.   r   Nr
   r   )r   r   s   "r   r   r   ,   s'     M Ma M{ Mt Mr   c                F    VP                  R 4      P                  V4       R# zwas Nappend_textappend_description_of)r   r'   r.   s   &&&r   r0   BaseMatcher.describe_mismatch,   s    ((0FFtLr   c                *   < V ^8  d   QhRS[ RS[RR/# )r   r'   match_descriptionr   Nr5   )r   r   s   "r   r   r   /   s'     J J1 J J Jr   c                F    VP                  R 4      P                  V4       R# r7   r8   )r   r'   r=   s   &&&r   describe_matchBaseMatcher.describe_match/   s    %%f-CCDIr    r   )r#   
__module____qualname____firstlineno____doc__r   r$   r*   r2   r0   r?   __static_attributes____classdictcell__)r   s   @r   r   r      sJ      
 
. . M MJ Jr   r   N)textwrapr   typingr   r   hamcrest.core.descriptionr   hamcrest.core.matcherr    hamcrest.core.string_descriptionr	   
__author____copyright____license__r
   r   rA   r   r   <module>rP      s>     $ 1 ) 5
-$CL!J'!* !Jr   