示例#1
0
    def check(self, arg):
        if Min.check(self, arg) and Max.check(self, arg):
            return True

        self.set_errror_message(
            f"Expected Between: {self.min_value} and {self.max_value}, Got: {arg}"
        )
        return False
示例#2
0
 def __from_str__(self):
     Min.__from_str__(self)
     Max.__from_str__(self)
示例#3
0
 def check(self, arg):
     if Min.check(self, arg) and Max.check(self, arg):
         return True
     return False
示例#4
0
 def __init__(self, min_value, max_value):
     Min.__init__(self, min_value)
     Max.__init__(self, max_value)