

@classmethod
def __setgluestate__(cls, rec, context):
    result = cls()
    (yield result)
    rec.subset_state = context.object(rec['state'])
    result.label = rec['label']
    result.style = context.object(rec['style'])
    result.style.parent = result
    result.subsets = list(map(context.object, rec['subsets']))

dataset/ETHPy150Open glue-viz/glue/glue/core/subset_group.py SubsetGroup.__setgluestate__/VarMisuse@28/33 `result`->`rec`