-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise exception when same input & output are used in a callback #605
Conversation
@@ -638,6 +638,12 @@ def _validate_callback(self, output, inputs, state): | |||
# pylint: disable=too-many-branches | |||
layout = self._cached_layout or self._layout_value() | |||
|
|||
for i in inputs: | |||
if output == i: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to need some changes for multi-output...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'll update once merged.
# Conflicts: # dash/dependencies.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! The inheritance, __str__
, and __repr__
are nice bonuses 🎉 💃
Closes #323