Skip to content

Commit

Permalink
Fix docs to use correct empty array instead of an empty dict
Browse files Browse the repository at this point in the history
- {} is an empty dict, not an empty set
  • Loading branch information
mofojed committed Feb 29, 2024
1 parent a772254 commit 3cef448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/data/storage/notebooks/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def order_table():
lambda: table_publisher(
"Order table", {"sym": dht.string, "size": dht.int32, "side": dht.string}
),
{},
[],
)
t = ui.use_memo(lambda: blink_to_append_only(blink_table), {blink_table})

Expand Down Expand Up @@ -389,7 +389,7 @@ def use_wave_input():
def multiwave():
amplitude, frequency, phase, wave_input = use_wave_input()

tt = use_memo(lambda: time_table("PT1s").update("x=i"), {})
tt = use_memo(lambda: time_table("PT1s").update("x=i"), [])
t = use_memo(
lambda: tt.update(
[
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ def monitor_changed_data(source: Table):
else:
set_changed(empty_table(0))

ui.use_table_listener(source, listener, set())
ui.use_table_listener(source, listener, [])

added_check = ui.checkbox(
"Show Added", isSelected=show_added, on_change=set_show_added
Expand Down Expand Up @@ -930,7 +930,7 @@ from deephaven import ui, time_table
@ui.component
def resetable_table():
table, set_table = ui.use_state(lambda: time_table("PT1s"))
handle_press = ui.use_liveness_scope(lambda _: set_table(time_table("PT1s")), set())
handle_press = ui.use_liveness_scope(lambda _: set_table(time_table("PT1s")), [])
return [
ui.action_button(
"Reset",
Expand Down

0 comments on commit 3cef448

Please sign in to comment.