Skip to content

Commit 1fe53e8

Browse files
fix: show the type that failed to plot (#194)
* fix: show the type that failed to plot Signed-off-by: Henry Schreiner <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f2b3f98 commit 1fe53e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uproot_browser/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def make_hist_title(item: Any, histogram: hist.Hist) -> str:
4242

4343

4444
@functools.singledispatch
45-
def plot(tree: Any) -> None: # noqa: ARG001
45+
def plot(tree: Any) -> None:
4646
"""
4747
Implement this for each type of plottable.
4848
"""
49-
msg = "This object is not plottable yet"
49+
msg = f"This object ({type(tree)}) is not plottable yet"
5050
raise RuntimeError(msg)
5151

5252

0 commit comments

Comments
 (0)