File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ async def group_tree_async(
4848 max_nodes : int = 500 ,
4949 plain : bool = False ,
5050) -> TreeRepr :
51- members = []
51+ members : list [ tuple [ str , Any ]] = []
5252 truncated = False
5353 async for item in group .members (max_depth = max_depth ):
5454 if len (members ) == max_nodes :
@@ -125,5 +125,9 @@ async def group_tree_async(
125125 stack .append ((child_prefix , deque (children )))
126126 text = "\n " .join (text_lines ) + "\n "
127127 html = "\n " .join (html_lines ) + "\n "
128- note = f"Truncated at max_nodes={ max_nodes } , some nodes and their children may be missing\n " if truncated else ""
128+ note = (
129+ f"Truncated at max_nodes={ max_nodes } , some nodes and their children may be missing\n "
130+ if truncated
131+ else ""
132+ )
129133 return TreeRepr (text , html , truncated = note )
You can’t perform that action at this time.
0 commit comments