Skip to content

Commit

Permalink
fix: Fix walrus in context
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Jun 11, 2024
1 parent 8ee1a41 commit 60ad28e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capellambse_context_diagrams/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ def _create_diagram(self, params: dict[str, t.Any]) -> cdiagram.Diagram:
"display_symbols_as_boxes",
"slim_center_box",
]:
if override := params.pop(param_name, None) is not None:
if (override := params.pop(param_name, None)) is not None:
setattr(self, param_name, override)

data = params.get("elkdata") or get_elkdata(self, params)
layout = try_to_layout(data)
add_context(layout, params.get("is_legend", False))
Expand Down

0 comments on commit 60ad28e

Please sign in to comment.