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
No related merge requests found
...@@ -435,8 +435,8 @@ def print_assembly_tree(root, levels=None): ...@@ -435,8 +435,8 @@ def print_assembly_tree(root, levels=None):
Args: Args:
root (LegoAssembly): The root of the assembly tree to print. root (LegoAssembly): The root of the assembly tree to print.
levels (List[bool]): Internally used by recursion to know where to print vertical connection. levels (List[bool]): Internally used by recursion to know where
Defaults to an empty list. to print vertical connection. Defaults to an empty list.
""" """
if not isinstance(root, LegoAssembly): if not isinstance(root, LegoAssembly):
raise TypeError( raise TypeError(
...@@ -459,6 +459,7 @@ def print_assembly_tree(root, levels=None): ...@@ -459,6 +459,7 @@ def print_assembly_tree(root, levels=None):
component_padding = "├── " if i < len(root.components) - 1 else "└── " component_padding = "├── " if i < len(root.components) - 1 else "└── "
print(f"{connection_padding}{component_padding}{component}") print(f"{connection_padding}{component_padding}{component}")
def correct_aggregation_hierarchy(root: LegoAssembly, strict: bool = False): def correct_aggregation_hierarchy(root: LegoAssembly, strict: bool = False):
""" """
Recursively checks whether the aggregation hierarchy from `root` is correct. 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