PHP WebShell

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

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

o

(]^%�@s�ddlmZmZmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZdZdZd	Zed
ed�ZGdd
�d
eeeef�Zdeeeefdeeeeffdd�ZdS)�)�Any�Hashable�Mapping�TypeVar�Union)�BaseMatcher)�Description)�	hasmethod)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�K)�boundc@sNeZdZdeeddfdd�Zdeeefdefdd�Z	d	e
ddfd
d�ZdS)�IsDictContainingKey�key_matcher�returnNcCs
||_dS)N)r)�selfr�r�R/usr/lib/python3/dist-packages/hamcrest/library/collection/isdict_containingkey.py�__init__s
zIsDictContainingKey.__init__�itemcCs.t|d�r|��D]}|j�|�rdSq	dS)N�keysTF)r	rr�matches)rr�keyrrr�_matchess
�zIsDictContainingKey._matches�descriptioncCs|�d��|j�dS)Nza dictionary containing key )�append_text�append_description_ofr)rrrrr�describe_tos
�zIsDictContainingKey.describe_to)�__name__�
__module__�__qualname__rrrrr�boolrrrrrrrrsr�	key_matchrcCstt|��S)a�Matches if dictionary contains an entry whose key satisfies a given
    matcher.

    :param key_match: The matcher to satisfy for the key, 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 key satisfies the given matcher. If a matching entry is found,
    ``has_key`` 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_key(equal_to('foo'))
        has_key('foo')

    )rr
)r"rrr�has_key!sr#N)�typingrrrrr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.helpers.hasmethodr	�"hamcrest.core.helpers.wrap_matcherr
�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rrr#rrrr�<module>s.

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


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