Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville committed Mar 12, 2024
1 parent 0e294da commit 02cf802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/ui/src/deephaven/ui/hooks/use_execution_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def use_execution_context(
Returns:
A callable that will take any callable and invoke it within the current exec context
"""
exec_ctx = use_memo(lambda: exec_ctx if exec_ctx else get_exec_ctx(), {exec_ctx})
exec_fn = use_memo(lambda: partial(func_with_ctx, exec_ctx), {exec_ctx})
exec_ctx = use_memo(lambda: exec_ctx if exec_ctx else get_exec_ctx(), [exec_ctx])
exec_fn = use_memo(lambda: partial(func_with_ctx, exec_ctx), [exec_ctx])
return exec_fn
2 changes: 1 addition & 1 deletion plugins/ui/src/deephaven/ui/hooks/use_table_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def use_table_data(
table_updated = lambda: _set_new_data(table, sentinel, set_data, set_is_sentinel)

ui.use_table_listener(
table, partial(_on_update, ctx, table_updated, executor_name), set()
table, partial(_on_update, ctx, table_updated, executor_name), []
)

return transform(data, is_sentinel)

0 comments on commit 02cf802

Please sign in to comment.