Skip to content

Commit 9e07bbe

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

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/uproot_browser/tree.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def children(self) -> list[UprootEntry]:
8484
else:
8585
items = {obj.name.split(";")[0] for obj in self.item.branches}
8686
return [
87-
UprootEntry(key if self.path == "/" else f"{self.path}/{key}", self.item[key]) for key in sorted(items)
87+
UprootEntry(
88+
key if self.path == "/" else f"{self.path}/{key}", self.item[key]
89+
)
90+
for key in sorted(items)
8891
]
8992

9093

src/uproot_browser/tui/browser.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,3 @@ HelpScreen {
9090
height: 3;
9191
background: $surface-lighten-1;
9292
}
93-

src/uproot_browser/tui/browser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ def on_uproot_selected(self, message: UprootSelected) -> None:
151151
make_plot(message.upfile[message.path], theme, 20)
152152
self.plot_widget.item = Plotext(message.upfile, message.path, theme)
153153
content_switcher.current = "plot"
154-
self.query_one("#plot-input", textual.widgets.Input).value = f"f[{message.path!r}]"
154+
self.query_one(
155+
"#plot-input", textual.widgets.Input
156+
).value = f"f[{message.path!r}]"
155157

156158
except EmptyTreeError:
157159
content_switcher.current = "empty"

src/uproot_browser/tui/right_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import textual.widget
1313
import textual.widgets
1414

15-
import uproot_browser.plot
1615
import uproot_browser.dirs
16+
import uproot_browser.plot
1717

1818
LOGO = """\
1919
Scikit-HEP

0 commit comments

Comments
 (0)