Skip to content

Commit c1584f7

Browse files
committed
correct print output
1 parent 2199251 commit c1584f7

File tree

1 file changed

+4
-0
lines changed
  • src/compas/datastructures/tree

1 file changed

+4
-0
lines changed

src/compas/datastructures/tree/tree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ class Tree(Datastructure):
244244
>>> branch.add(leaf2)
245245
>>> print(tree)
246246
<Tree with 4 nodes>
247+
└── <TreeNode: root>
248+
└── <TreeNode: branch>
249+
├── <TreeNode: leaf1>
250+
└── <TreeNode: leaf2>
247251
248252
"""
249253

0 commit comments

Comments
 (0)