@staticmethod<EOL><INDENT>def get_int_range_validator(start, stop):<DEDENT>
def validate_int_range(value):<EOL><INDENT>"""<STR_LIT>"""<EOL>value = int(value)<EOL>if value >= start and value < stop:<EOL><INDENT>return value<EOL><DEDENT>raise ValueError("<STR_LIT>".format(start, stop))<EOL><DEDENT>return validate_int_range<EOL>
Return an integer range validator to be used with `add_setting`.

        :Parameters:
            - `start`: minimum value for the integer
            - `stop`: the upper bound (maximum value + 1)
        :Types:
            - `start`: `int`
            - `stop`: `int`

        :return: a validator function