From 4415df48bacdd64a87701ff9fcd83b6dc33f15fc Mon Sep 17 00:00:00 2001 From: "Hock, Martin" <martin.hock@fst.tu-darmstadt.de> Date: Mon, 6 Mar 2023 10:00:19 +0100 Subject: [PATCH] Format changes for flake8. --- functions/classes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/classes.py b/functions/classes.py index c13ad5b..3b67ddc 100644 --- a/functions/classes.py +++ b/functions/classes.py @@ -435,8 +435,8 @@ def print_assembly_tree(root, levels=None): Args: root (LegoAssembly): The root of the assembly tree to print. - levels (List[bool]): Internally used by recursion to know where to print vertical connection. - Defaults to an empty list. + levels (List[bool]): Internally used by recursion to know where + to print vertical connection. Defaults to an empty list. """ if not isinstance(root, LegoAssembly): raise TypeError( @@ -459,6 +459,7 @@ def print_assembly_tree(root, levels=None): component_padding = "├── " if i < len(root.components) - 1 else "└── " print(f"{connection_padding}{component_padding}{component}") + def correct_aggregation_hierarchy(root: LegoAssembly, strict: bool = False): """ Recursively checks whether the aggregation hierarchy from `root` is correct. -- GitLab