"Unexpected keyword argument" when using flexible callback signature

Answering my own question. RTFM…
In this case, the order of the callback's function arguments doesn't matter. All that matters is that the keys of the dependency dictionary match the function argument names

So, corrected:

@app.callback(
       output=[Output("test", "children")],
       inputs={ 'all_inputs': Input('control-complexity-slider', 'value') }
)
def display(all_inputs):
    return [all_inputs]
1 Like