We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757bc5b commit 63a23caCopy full SHA for 63a23ca
pan_chainguard/util.py
@@ -185,7 +185,7 @@ def dict_to_tree(*, data: dict) -> treelib.Tree:
185
return tree
186
187
188
-def stats_from_tree(*, tree: treelib.Tree) -> dict:
+def stats_from_tree(*, tree: treelib.Tree) -> dict[str, Union[float, int]]:
189
all_nodes = tree.all_nodes()
190
root_nodes = [node for node in all_nodes
191
if tree.parent(node.identifier) is not None and
0 commit comments