Skip to content

Commit 63a23ca

Browse files
committed
add type hint
1 parent 757bc5b commit 63a23ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pan_chainguard/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def dict_to_tree(*, data: dict) -> treelib.Tree:
185185
return tree
186186

187187

188-
def stats_from_tree(*, tree: treelib.Tree) -> dict:
188+
def stats_from_tree(*, tree: treelib.Tree) -> dict[str, Union[float, int]]:
189189
all_nodes = tree.all_nodes()
190190
root_nodes = [node for node in all_nodes
191191
if tree.parent(node.identifier) is not None and

0 commit comments

Comments
 (0)