def METHOD_NAME(self, typ, message):
    """
    Do any of the stored messages of a specific type equal the given message.
    Parameters
    ----------
    typ : str
        Type of messages ('error', 'warning', 'info') to be returned.
    message : str
        The message to match.
    Returns
    -------
    bool
        True if any of the lines of stored messages of a specific type equal the line.
    """
    for s in self._msgs[typ]:
        if s == message:
            return True
    return False