e4rddlmZmZddlmZddlmZddlmZdZ dZ dZ Gdd eeZ d eefd Z y ) )OptionalSized) BaseMatcher) Description)Matcherz Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc8eZdZddedeedefdZdeddfdZy) IsEmptyNitemmismatch_descriptionreturnc t|dk(ry|r|jdt|zy#t$r|r|jdYywxYw)NrTzhas %d item(s)zdoes not support lengthF)len append_text TypeError)selfr r s F/usr/lib/python3/dist-packages/hamcrest/library/collection/is_empty.pymatcheszIsEmpty.matches s_ L4yA~#$001ACI1MN   L#$001JK  Ls11AA descriptionc&|jdy)Nzan empty collection)r)rrs r describe_tozIsEmpty.describe_tos 56)N) __name__ __module__ __qualname__rrrboolrrrrr r s5 E +9N Z^ 7{7t7rr r ctS)zy This matcher matches any collection-like object that responds to the __len__ method, and has a length of 0. )r rrremptyrs 9rN)typingrrhamcrest.core.base_matcherrhamcrest.core.descriptionrhamcrest.core.matcherr __author__ __copyright__ __license__r rrrrr&sA"21)  - $ 7k% 7&wu~r