    def conforms(self, instance: object, format: str) -> bool:
        """
        Check whether the instance conforms to the given format.

        Arguments:

            instance (*any primitive type*, i.e. str, number, bool):

                The instance to check

            format:

                The format that instance should conform to

        Returns:

            bool: whether it conformed

        """
        try:
            self.check(instance, format)
        except FormatError:
            return False
        else:
            return True
Check whether the instance conforms to the given format.

Arguments:

instance (*any primitive type*, i.e. str, number, bool):

The instance to check

format:

The format that instance should conform to

Returns:

bool: whether it conformed
jsonschema/_format.py