

def output(self, key, obj):
    value = get_value((key if (self.attribute is None) else self.attribute), obj)
    if (value is None):
        if self.allow_null:
            return None
        elif (self.default is not None):
            return self.default
    return marshal(value, key.nested)

dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/fields.py Nested.output/VarMisuse@81/88 `self`->`key`