Skip to content

Commit 5e6d609

Browse files
Copilotjnumainville
andcommitted
Simplify title check by removing redundant isinstance
Co-authored-by: jnumainville <[email protected]>
1 parent 7a5f519 commit 5e6d609

File tree

1 file changed

+1
-1
lines changed
  • plugins/plotly-express/src/deephaven/plot/express/plots

1 file changed

+1
-1
lines changed

plugins/plotly-express/src/deephaven/plot/express/plots/subplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def create_subplot_annotations(
292292

293293
for idx, title in enumerate(titles):
294294
# Skip empty or whitespace-only titles
295-
if not title or (isinstance(title, str) and not title.strip()):
295+
if not title or not title.strip():
296296
continue
297297

298298
# Map user's natural index to reversed grid position

0 commit comments

Comments
 (0)