Skip to content

Commit

Permalink
flake8/linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Feb 18, 2025
1 parent 2c3076c commit b14664f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/plugins/pages/plugin_page_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def page_layout(self) -> dash.html.Div:

def page_callbacks(self):
"""Set up the callbacks for the page"""

@callback(
[Output(component_id, prop) for component_id, prop in self.models_table.properties],
[Input("plugin-2-page-load", "n_intervals")],
Expand Down
3 changes: 2 additions & 1 deletion examples/plugins/pages/plugin_page_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ def page_layout(self) -> dash.html.Div:
]
),
# Interval that triggers once on page load
dcc.Interval(id="plugin-3-page-load", interval=100, max_intervals=1)
dcc.Interval(id="plugin-3-page-load", interval=100, max_intervals=1),
]
)
return layout

def page_load_callbacks(self):
"""Load page (once) callbacks"""

@callback(
[Output(component_id, prop) for component_id, prop in self.models_table.properties],
[Input("plugin-3-page-load", "n_intervals")],
Expand Down
6 changes: 5 additions & 1 deletion src/workbench/web_interface/components/plugins/ag_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def create_component(
)

# Fill in plugin properties
self.properties = [(self.component_id, "columnDefs"), (self.component_id, "rowData"), (self.component_id, "style")]
self.properties = [
(self.component_id, "columnDefs"),
(self.component_id, "rowData"),
(self.component_id, "style"),
]

# Output signals
self.signals = [
Expand Down

0 comments on commit b14664f

Please sign in to comment.