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 Jan 4, 2024
1 parent 82f70b0 commit 5ccb023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion vizro-core/src/vizro/actions/_actions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def _create_target_arg_mapping(dot_separated_strings: List[str]) -> Dict[str, Li
return results


def _update_nested_graph_properties(graph_config: Dict[str, Any], dot_separated_string: str, value: Any) -> Dict[str, Any]:
def _update_nested_graph_properties(
graph_config: Dict[str, Any], dot_separated_string: str, value: Any
) -> Dict[str, Any]:
keys = dot_separated_string.split(".")
current_property = graph_config

Expand Down
2 changes: 1 addition & 1 deletion vizro-core/tests/unit/vizro/actions/test_actions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_update_nested_graph_properties_single_level(self):
@pytest.mark.parametrize(
"graph, dot_separated_strings, value, expected",
[
({"node": {"label": "A", "color": "blue"}}, "node.color", "red", {"node": {"label": "A", "color": "red"}}),
({"node": {"label": "A", "color": "blue"}}, "node.color", "red", {"node": {"label": "A", "color": "red"}}),
(
{"nodes": {"A": {"color": "blue"}, "B": {"color": "green"}}},
"nodes.A.color",
Expand Down

0 comments on commit 5ccb023

Please sign in to comment.