    def __contains__(self, index: str | int):
        """
        Check whether ``instance[index]`` has any errors.
        """
        return index in self._contents
Check whether ``instance[index]`` has any errors.
jsonschema/exceptions.py