Skip to content

[BUG] Regression on callbacks using name argument output=Output(...) #1366

Closed
@Marc-Andre-Rivet

Description

@Marc-Andre-Rivet

Caused by #1180

Example DCC failing test: https://github.com/plotly/dash-core-components/blob/dev/tests/test_integration_1.py#L391

Removing (output=) makes it work:

Output(component_id='test-pathname', component_property='children'),

The problematic line seems to be https://github.com/plotly/dash/blob/dev/dash/dependencies.py#L163

Updating to 👇 makes the test pass:

if isinstance(outputs, (list, tuple)) and len(outputs) == 1:

Expected result:

  • DCC tests pass
  • Added test in Dash for named arguments

@alexcjohnson

Metadata

Metadata

Assignees

Labels

bugsomething brokenregressionthis used to work

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions