Skip to content

Commit 8aeebaa

Browse files
committed
lint + pr number
1 parent 8cdea42 commit 8aeebaa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
File renamed without changes.

src/zarr/core/_tree.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)