Skip to content

support named callback args not wrapped in a list#1375

Merged
alexcjohnson merged 2 commits intodevfrom
1366-named-output-arg
Aug 20, 2020
Merged

support named callback args not wrapped in a list#1375
alexcjohnson merged 2 commits intodevfrom
1366-named-output-arg

Conversation

@alexcjohnson
Copy link
Collaborator

@alexcjohnson alexcjohnson commented Aug 20, 2020

Fixes #1366
I opted to allow any of the callback args to be provided as a list or not, rather than a narrower fix of just the output=Output(...) regression. My rationale is it's unambiguous what the user means, so there's no harm accepting it.

  • I have run the tests locally and they passed. (refer to testing section in contributing)
  • I have added tests, or extended existing tests, to cover any new features or bugs fixed in this PR
  • I have added entry in the CHANGELOG.md


args, kwargs = make_args(
Output("out1", "children"), Input("in", "children"), State("state", "children")
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😀

Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 What's not to like? This fix is 99% comments and tests! :shipit:

@alexcjohnson alexcjohnson merged commit c68bcc2 into dev Aug 20, 2020
@alexcjohnson alexcjohnson deleted the 1366-named-output-arg branch August 20, 2020 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants