

def value(self, key, layer=None, view=None):
    try:
        result = self.kwargs[key]
    except KeyError:
        raise MissingSettingError(key)
    if (isinstance(result, AttributeInfo) and (layer is not None)):
        cid = result.id
        return AttributeInfo.from_layer(layer, cid, result)
    return result

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py FrozenSettings.value/VarMisuse@80/90 `view`->`result`