def TSetOf(val_type):
  """Checks if a given value is a list with all elements of the same
     type and eliminates duplicated elements.

  """
  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/operator `%` -> `-`