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
def __from_str__(self): Min.__from_str__(self) Max.__from_str__(self)
def check(self, arg): if Min.check(self, arg) and Max.check(self, arg): return True return False
def __init__(self, min_value, max_value): Min.__init__(self, min_value) Max.__init__(self, max_value)