@classmethod
    def wrap(cls, data):
        if cls.__name__ == Repeater.__name__:
            cls_ = cls.get_class_from_doc_type(data['doc_type'])
            if cls_:
                return cls_.wrap(data)
            else:
                raise ResourceNotFound(data % 'Unknown repeater type: %s')
        else:
            return super(Repeater, cls).wrap(data)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/repeaters/models.py/Repeater.wrap/swapped operands of `%`