def __init__(self, rule, min, max, reverse): MinBoundedRule.__init__(self, rule, min, reverse) MaxBoundedRule.__init__(self, rule, max, reverse) assert_greater_equals(max, min)
def __init__(self, rule, max, reverse): BoundedRule.__init__(self, rule, reverse) assert_greater_equals(max, 1) self.max = max
def __init__(self, rule, min, reverse): BoundedRule.__init__(self, rule, reverse) assert_greater_equals(min, 1) self.min = min