(setting_info, choice)
return [value]
Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "choice" type setting.

    :param dict setting_info: The information dict of the setting from the
                              device profile.
    :param choice: The selected choice.
    :rtype: list[int]
Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "choice" type setting.
Called by the : class : rivalcfg . mouse . Mouse class when processing a choice type setting .
def process_value(setting_info, choice):
    """Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "choice" type setting.

    :param dict setting_info: The information dict of the setting from the
                              device profile.
    :param choice: The selected choice.
    :rtype: list[int]
    """
    choices = {str(k): v for k, v in setting_info["choices"].items()}
    choice = str(choice)
    if choice not in choices:
        raise ValueError(
            "value must be one of [%s]" % choices_to_string(setting_info["choices"])
        )
    value = choices[choice]
    return [value]
def process_value ( setting_info , choice ) : choices = { str ( k ) : v for k , v in setting_info [ "choices" ] . items ( ) } choice = str ( choice ) if choice not in choices : raise ValueError ( "value must be one of [%s]" % choices_to_string ( setting_info [ "choices" ] ) ) value = choices [ choice ] return [ value ]