Skip to content

Commit c839c80

Browse files
mbegelalexcjohnson
authored andcommitted
Don't use input as variable
1 parent d167e94 commit c839c80

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dash/dash.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def _insert_callback(self, output, inputs, state, prevent_initial_call):
846846
return callback_id
847847

848848
def clientside_callback(
849-
self, clientside_function, output, input, state=(), prevent_initial_call=None
849+
self, clientside_function, output, input_, state=(), prevent_initial_call=None
850850
):
851851
"""Create a callback that updates the output by calling a clientside
852852
(JavaScript) function instead of a Python function.
@@ -912,8 +912,8 @@ def clientside_callback(
912912
not to fire when its outputs are first added to the page. Defaults to
913913
`False` unless `prevent_initial_callbacks=True` at the app level.
914914
"""
915-
is_multi_input = isinstance(input, (list, tuple))
916-
inputs = input if is_multi_input else [input]
915+
is_multi_input = isinstance(input_, (list, tuple))
916+
inputs = input_ if is_multi_input else [input_]
917917

918918
self._insert_callback(output, inputs, state, prevent_initial_call)
919919

@@ -946,7 +946,7 @@ def clientside_callback(
946946
"function_name": function_name,
947947
}
948948

949-
def callback(self, output, input, state=(), prevent_initial_call=None):
949+
def callback(self, output, input_, state=(), prevent_initial_call=None):
950950
"""
951951
Normally used as a decorator, `@app.callback` provides a server-side
952952
callback relating the values of one or more `output` items to one or
@@ -958,8 +958,8 @@ def callback(self, output, input, state=(), prevent_initial_call=None):
958958
not to fire when its outputs are first added to the page. Defaults to
959959
`False` unless `prevent_initial_callbacks=True` at the app level.
960960
"""
961-
is_multi_input = isinstance(input, (list, tuple))
962-
inputs = input if is_multi_input else [input]
961+
is_multi_input = isinstance(input_, (list, tuple))
962+
inputs = input_ if is_multi_input else [input_]
963963
callback_id = self._insert_callback(output, inputs, state, prevent_initial_call)
964964
multi = isinstance(output, (list, tuple))
965965

0 commit comments

Comments
 (0)