← Back
Editing: base_matcher.cpython-38.pyc
U �b�V� � @ sD d dl mZ dZdZdZd dlmZ d dlmZ G dd� de�Z d S ) � )�absolute_importzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt)�Matcher��tostringc @ s2 e Zd ZdZdd� Zdd� Zddd�Zd d � ZdS )�BaseMatchera� Base class for all :py:class:`~hamcrest.core.matcher.Matcher` implementations. Most implementations can just implement :py:obj:`_matches`, leaving the handling of any mismatch description to the ``matches`` method. But if it makes more sense to generate the mismatch description during the matching, override :py:meth:`~hamcrest.core.matcher.Matcher.matches` instead. c C s t | �S �Nr )�self� r �</usr/lib/python3/dist-packages/hamcrest/core/base_matcher.py�__str__ s zBaseMatcher.__str__c C s t d��d S )N�_matches)�NotImplementedError)r �itemr r r r s zBaseMatcher._matchesNc C s"