pyre.constraints.Subset

Module Contents

class pyre.constraints.Subset.Subset(choices, **kwds)

Bases: pyre.constraints.Constraint.Constraint

Constraint that is satisfied when the candidate is a subset of a given set

validate(self, value, **kwds)

Check whether {value} satisfies this constraint

__str__(self)