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

Fix callback output of ndarray and no_update check. #2175

Merged
merged 5 commits into from
Aug 2, 2022
Merged

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Aug 1, 2022

Fix #2173

@T4rk1n T4rk1n requested a review from alexcjohnson as a code owner August 1, 2022 16:40


def test_cbsc018_callback_ndarray_output(dash_duo):
import numpy as np
Copy link
Collaborator

Choose a reason for hiding this comment

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

move import to the top?

dash/_callback.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 just two minor style comments. Looks good! This kind of problem must happen all the time when using == with something that might be a numpy array... very annoying.

T4rk1n and others added 2 commits August 2, 2022 10:01
Co-authored-by: Alex Johnson <johnson.alex.c@gmail.com>
@T4rk1n T4rk1n force-pushed the fix-no-update-np branch from f26ee35 to 73c80cf Compare August 2, 2022 14:55
@T4rk1n T4rk1n merged commit 8453bdd into dev Aug 2, 2022
@T4rk1n T4rk1n deleted the fix-no-update-np branch August 2, 2022 15:13
# 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] NoUpdate.is_no_update can't handle ndarray
2 participants