PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__

Просмотр файла: isdict_containingvalue.cpython-310.pyc

o

(]^+�@s�ddlmZmZmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZdZdZd	Zed
�ZGdd�deeeef�Zd
eeeefdeeeeffdd�ZdS)�)�Any�Mapping�TypeVar�Union)�BaseMatcher)�Description)�	hasmethod)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Vc@sNeZdZdeeddfdd�Zdeeefdefdd�Z	d	e
ddfd
d�ZdS)�IsDictContainingValue�
value_matcher�returnNcCs
||_dS)N)r
)�selfr
�r�T/usr/lib/python3/dist-packages/hamcrest/library/collection/isdict_containingvalue.py�__init__s
zIsDictContainingValue.__init__�itemcCs.t|d�r|��D]}|j�|�rdSq	dS)N�valuesTF)rrr
�matches)rr�valuerrr�_matchess
�zIsDictContainingValue._matches�descriptioncCs|�d��|j�dS)Nza dictionary containing value )�append_text�append_description_ofr
)rrrrr�describe_tos
�z!IsDictContainingValue.describe_to)�__name__�
__module__�__qualname__r
rrrr�boolrrrrrrrrsrrrcCstt|��S)a�Matches if dictionary contains an entry whose value satisfies a given
    matcher.

    :param value_match: The matcher to satisfy for the value, or an expected
        value for :py:func:`~hamcrest.core.core.isequal.equal_to` matching.

    This matcher iterates the evaluated dictionary, searching for any key-value
    entry whose value satisfies the given matcher. If a matching entry is
    found, ``has_value`` is satisfied.

    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.

    Examples::

        has_value(equal_to('bar'))
        has_value('bar')

    )rr	)rrrr�	has_value!sr N)�typingrrrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.helpers.hasmethodr�"hamcrest.core.helpers.wrap_matcherr	�hamcrest.core.matcherr
�
__author__�
__copyright__�__license__rrr rrrr�<module>s.

Выполнить команду


Для локальной разработки. Не используйте в интернете!