Ë
    ÉÓÐe1  ã                   ó¾   — d dl mZmZmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ dZdZd	Z ed
«      Z G d„ deee      «      Zdeee   ef   deee      fd„Zy)é    )ÚSequenceÚTypeVarÚUnion)ÚBaseMatcher)Úany_of)ÚDescription)Úwrap_matcher)ÚMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtÚTc                   óH   — e Zd Zdee   ddfd„Zdee   defd„Zde	ddfd„Z
y)	ÚIsSequenceOnlyContainingÚmatcherÚreturnNc                 ó   — || _         y )N)r   )Úselfr   s     úW/usr/lib/python3/dist-packages/hamcrest/library/collection/issequence_onlycontaining.pyÚ__init__z!IsSequenceOnlyContaining.__init__   s	   € Øˆ�ó    Úitemc                 ó    — 	 t        |«      }t        |«      dk(  ry|D ]  }| j                  j                  |«      rŒ y y# t        $ r Y yw xY w)Nr   FT)ÚlistÚlenr   ÚmatchesÚ	TypeError)r   r   ÚsequenceÚelements       r   Ú_matchesz!IsSequenceOnlyContaining._matches   sZ   € ð		Ü˜D“zˆHÜ�8‹} Ò!ØØ#ò !�Ø—|‘|×+Ñ+¨GÕ4Ù ð!ð øÜò 	Ùð	ús    ‚A œ A ½A ¿A Á	AÁAÚdescriptionc                 óX   — |j                  d«      j                  | j                  «       y )Nz%a sequence containing items matching )Úappend_textÚappend_description_ofr   )r   r   s     r   Údescribe_toz$IsSequenceOnlyContaining.describe_to    s#   € Ø×ÑÐ GÓH×^Ñ^Ø�L‰Lõ	
r   )Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   Úboolr   r   r"   © r   r   r   r      sC   „ ð ¨¡
ð ¨tó ð
˜X a™[ð 
¨Tó 
ð
 {ð 
°tô 
r   r   Úitemsr   c                  ój   — g }| D ]  }|j                  t        |«      «       Œ t        t        |Ž «      S )aò  Matches if each element of sequence satisfies any of the given matchers.

    :param match1,...: A comma-separated list of matchers.

    This matcher iterates the evaluated sequence, confirming whether each
    element satisfies any of the given matchers.

    Example::

        only_contains(less_than(4))

    will match ``[3,1,2]``.

    Any argument that is not a matcher is implicitly wrapped in an
    :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for
    equality.

    )Úappendr	   r   r   )r(   Úmatchersr   s      r   Úonly_containsr,   &   s9   € ð& €HØò ,ˆØ�‰œ TÓ*Õ+ð,ä#¤F¨HÐ$5Ó6Ð6r   N)Útypingr   r   r   Úhamcrest.core.base_matcherr   Úhamcrest.core.core.anyofr   Úhamcrest.core.descriptionr   Ú"hamcrest.core.helpers.wrap_matcherr	   Úhamcrest.core.matcherr
   Ú
__author__Ú__copyright__Ú__license__r   r   r,   r'   r   r   ú<module>r6      sp   ðß +Ñ +å 2Ý +Ý 1Ý ;Ý )à€
Ø-€Ø$€áˆCƒL€ô
˜{¨8°A©;Ñ7ô 
ð,7˜% ¨¡
¨A Ñ.ð 7°7¸8ÀA¹;Ñ3Gô 7r   