Skip to content
Snippets Groups Projects
Commit 4415df48 authored by Hock, Martin's avatar Hock, Martin
Browse files

Format changes for flake8.

parent dd8d99a0
No related branches found
No related tags found
1 merge request!6Merge for new WS2223 release
Pipeline #931587 failed
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment