

def TSetOf(val_type):
    'Checks if a given value is a list with all elements of the same\n     type and eliminates duplicated elements.\n\n  '
    desc = WithDesc(('Set of %s' % (Parens(val_type),)))
    return desc((lambda st: TListOf(val_type)(list(set(st)))))

dataset/ETHPy150Open ganeti/ganeti/lib/ht.py TSetOf/original