

def check(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        :raises: :exc:`FormatError` if instance does not conform to format\n\n        '
    if (format not in self.checkers):
        return
    (func, raises) = self.checkers[func]
    (result, cause) = (None, None)
    try:
        result = func(instance)
    except raises as e:
        cause = e
    if (not result):
        raise FormatError(('%r is not a %r' % (instance, format)), cause=cause)

dataset/ETHPy150Open Julian/jsonschema/jsonschema/_format.py FormatChecker.check/VarMisuse@41/163 `format`->`func`