Skip to content

Commit 42761e6

Browse files
committed
no need to check for tuples
1 parent 31d3e04 commit 42761e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

holoviews/plotting/bokeh/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +1281,8 @@ def get_tool_id(tool: str | tools.Tool) -> tuple[type[tools.Tool], str | None]:
12811281
else:
12821282
for name in ("dimensions", "tags", "name", "description", "icon"):
12831283
if identifier := getattr(tool, name, None):
1284-
# Convert lists/tuples to tuples (hashable)
1285-
if isinstance(identifier, list | tuple):
1284+
# Convert lists to tuples (hashable)
1285+
if isinstance(identifier, list):
12861286
identifier = tuple(identifier)
12871287
return tool_type, identifier
12881288
return tool_type, None

0 commit comments

Comments
 (0)