@classmethod
    def wrap(self, obj):
        if 'constant' not in obj:
            raise BadSpecError('"constant" property is required!')
        return super(ConstantGetterSpec, self).wrap(obj)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/expressions/specs.py/ConstantGetterSpec.wrap/original