Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/hamcrest/library/collection/__pycache__/ |
Upload File : |
o (]^4 � @ sj d dl mZmZ d dlmZ d dlmZ d dlmZ dZ dZ dZG dd � d ee �Zd ee fdd�Z d S )� )�Optional�Sized)�BaseMatcher)�Description)�Matcherz Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc @ s: e Zd Zd dedee defdd�Zdeddfdd �ZdS )�IsEmptyN�item�mismatch_description�returnc C s^ zt |�dkr W dS |r|�dt |� � W dS W dS ty. |r+|�d� Y dS Y dS w )Nr Tzhas %d item(s)zdoes not support lengthF)�len�append_text� TypeError)�selfr r � r �F/usr/lib/python3/dist-packages/hamcrest/library/collection/is_empty.py�matches s ����zIsEmpty.matches�descriptionc C s |� d� d S )Nzan empty collection)r )r r r r r �describe_to s zIsEmpty.describe_to)N) �__name__� __module__�__qualname__r r r �boolr r r r r r r s r r c C s t � S )zy This matcher matches any collection-like object that responds to the __len__ method, and has a length of 0. )r r r r r �empty s r N)�typingr r �hamcrest.core.base_matcherr �hamcrest.core.descriptionr �hamcrest.core.matcherr � __author__� __copyright__�__license__r r r r r r �<module> s