

def conforms(self, instance, format):
    '\n        Check whether the instance conforms to the given format.\n\n        :argument instance: the instance to check\n        :type: any primitive type (str, number, bool)\n        :argument str format: the format that instance should conform to\n        :rtype: bool\n\n        '
    try:
        self.check(instance, format)
    except FormatError:
        return False
    else:
        return True

dataset/ETHPy150Open Julian/jsonschema/jsonschema/_format.py FormatChecker.conforms/original