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 45c661b commit 74fcd09Copy full SHA for 74fcd09
src/uproot_browser/tree.py
@@ -57,14 +57,7 @@ def _(item: uproot.behaviors.TBranch.HasBranches) -> bool:
57
return len(item.branches) > 0
58
59
60
-@functools.singledispatch
61
-def get_children(item: Any) -> set[str]: # noqa: ARG001
62
- msg = "Should not be called, protect with is_dir!"
63
- raise AssertionError(msg)
64
-
65
66
-@get_children.register
67
-def _(item: Mapping[str, Any]) -> set[str]:
+def get_children(item: Mapping[str, Any]) -> set[str]:
68
return {
69
key.split(";")[0]
70
for key in item.keys() # noqa: SIM118
0 commit comments