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 Apr 8, 2024
1 parent d0eac24 commit 1107486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions vizro-core/examples/_dev/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"""Rough example used by developers."""
from dash import Output, State

from typing import Any, Dict, List, Optional

import vizro.models as vm
import vizro.plotly.express as px
from dash import Output
from dash import Output, State
from vizro import Vizro
from vizro.actions import export_data, filter_interaction
from vizro.managers._model_manager import ModelID
Expand Down Expand Up @@ -48,8 +47,10 @@ def overwritten_filter_interactions_1(
**filter_interaction.pure_function(targets=targets, **inputs),
}


# 2. Overwriting the filter_interaction action by inheriting FilterInteractionAction


# This also works:
# from vizro.actions.filter_interaction_action import FilterInteractionAction
# class OverwrittenFilterInteractions2(FilterInteractionAction):
Expand Down Expand Up @@ -99,8 +100,8 @@ def outputs(self):
# targets=[
# "scatter",
# "scatter_from_page_2",
# ]
# )
# ]
# )
# ),
# Implementing updating card with grid clicked data as the independent action.
# vm.Action(
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/actions/_actions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _apply_filters(data_frame: pd.DataFrame, ctds_filters: List[CallbackTriggerD

for action in selector_actions:
# TODO-AV2: Handle if "action.function != "filter_action" until inputs refactoring
if (target not in action.function.targets or ALL_OPTION in selector_value):
if target not in action.function.targets or ALL_OPTION in selector_value:
continue

_filter_function = action.function["filter_function"]
Expand Down

0 comments on commit 1107486

Please sign in to comment.