def METHOD_NAME(new: Setting, settings: Dict[str, Any]) -> None:
    """
    Change the value of a setting.
    :param new: A Settings object with the new information.
    :param settings: The settings dict.
    """
    nested = new.location
    for key in nested[:-1]:
        settings = settings[key]
    settings[nested[-1]] = new.value