

def add_on_change(key, callback):
    '\n    Sets the callback to run when the given settings key changes.\n    :type key: str\n    :type callback: () -> None\n    '
    if (_settings is None):
        add_on_change_callbacks[key].add(key)
    else:
        _settings.add_on_change(key, callback)

dataset/ETHPy150Open Varriount/NimLime/nimlime_core/settings.py add_on_change/VarMisuse@30/89 `callback`->`key`