Skip to content

Commit 049b34c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e1301fa commit 049b34c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uproot_browser/tree.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import functools
99
from collections.abc import Mapping
1010
from pathlib import Path
11-
from typing import Any, TypedDict, Literal
11+
from typing import Any, Literal, TypedDict
1212

1313
import uproot
1414
import uproot.reading
@@ -46,10 +46,12 @@ class MetaDict(MetaDictRequired, total=False):
4646
def is_dir(item: Any) -> bool:
4747
return False
4848

49+
4950
@is_dir.register
5051
def _(item: uproot.reading.ReadOnlyDirectory) -> Literal[True]:
5152
return True
5253

54+
5355
@is_dir.register
5456
def _(item: uproot.behaviors.TBranch.HasBranches) -> bool:
5557
return len(item.branches) > 0
@@ -59,6 +61,7 @@ def _(item: uproot.behaviors.TBranch.HasBranches) -> bool:
5961
def get_children(item: Any) -> set[str]:
6062
raise RuntimeError("Should not be called, protect with is_dir!")
6163

64+
6265
@get_children.register
6366
def _(item: Mapping) -> set[str]:
6467
return {

0 commit comments

Comments
 (0)