Skip to content

Commit

Permalink
Format and move import.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Aug 2, 2022
1 parent 249c934 commit 73c80cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions dash/_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def to_plotly_json(self): # pylint: disable=no-self-use

@staticmethod
def is_no_update(obj):
return (
isinstance(obj, NoUpdate)
or (isinstance(obj, dict)
and obj == {"_dash_no_update": "_dash_no_update"})
return isinstance(obj, NoUpdate) or (
isinstance(obj, dict) and obj == {"_dash_no_update": "_dash_no_update"}
)


Expand Down
3 changes: 1 addition & 2 deletions tests/integration/callbacks/test_basic_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest
import time

import numpy as np
import werkzeug

from dash_test_components import (
Expand Down Expand Up @@ -768,8 +769,6 @@ def update_output(value):


def test_cbsc018_callback_ndarray_output(dash_duo):
import numpy as np

app = Dash(__name__)
app.layout = html.Div([dcc.Store(id="output"), html.Button("click", id="clicker")])

Expand Down

0 comments on commit 73c80cf

Please sign in to comment.