Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent 472f7a8 commit 1e3ba7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions vizro-core/src/vizro/actions/_actions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ def _get_modified_page_figures(
current_value = []

outputs[target] = model_manager[target](
target_to_data_frame=figure_targets_unfiltered_data,
current_value=current_value
target_to_data_frame=figure_targets_unfiltered_data, current_value=current_value
)

return outputs
10 changes: 4 additions & 6 deletions vizro-core/src/vizro/models/_controls/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,10 @@ def pre_build(self):
# 1. Selector doesn't support the dynamic mode
# 2. Selector is categorical and "options" prop is defined
# 3. Selector is numerical and "min" and "max" props are defined
if (
isinstance(self.selector, DYNAMIC_SELECTORS) and
(
hasattr(self.selector, "options") and not getattr(self.selector, "options") or
all(hasattr(self.selector, attr) and getattr(self.selector, attr) is None for attr in ["min", "max"])
)
if isinstance(self.selector, DYNAMIC_SELECTORS) and (
hasattr(self.selector, "options")
and not getattr(self.selector, "options")
or all(hasattr(self.selector, attr) and getattr(self.selector, attr) is None for attr in ["min", "max"])
):
for target_id in self.targets:
data_source_name = model_manager[target_id]["data_frame"]
Expand Down

0 comments on commit 1e3ba7f

Please sign in to comment.