HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/is_empty.cpython-310.pyc
o

(]^4�@sjddlmZmZddlmZddlmZddlmZdZ	dZ
dZGdd	�d	ee�Zd
eefdd�Z
d
S)�)�Optional�Sized)�BaseMatcher)�Description)�Matcherz
Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc@s:eZdZd
dedeedefdd�Zdeddfdd	�ZdS)�IsEmptyN�item�mismatch_description�returncCs^zt|�dkr
WdS|r|�dt|��WdSWdSty.|r+|�d�YdSYdSw)NrTzhas %d item(s)zdoes not support lengthF)�len�append_text�	TypeError)�selfrr	�r�F/usr/lib/python3/dist-packages/hamcrest/library/collection/is_empty.py�matches
s����zIsEmpty.matches�descriptioncCs|�d�dS)Nzan empty collection)r)rrrrr�describe_toszIsEmpty.describe_to)N)	�__name__�
__module__�__qualname__rrr�boolrrrrrrrsrr
cCst�S)zy
    This matcher matches any collection-like object that responds to the
    __len__ method, and has a length of 0.
    )rrrrr�emptysrN)�typingrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rrrrrr�<module>s