Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

support named callback args not wrapped in a list #1375

Merged
merged 2 commits into from
Aug 20, 2020

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
# for free to join this conversation on GitHub. Already have an account? # 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