Skip to content

Commit f5df6db

Browse files
committed
also check for dtype in is_typed_array_spec function
1 parent 7c7ef30 commit f5df6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/python/plotly/_plotly_utils/basevalidators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def is_typed_array_spec(v):
288288
"""
289289
Return whether a value is considered to be a typed array spec for plotly.js
290290
"""
291-
return isinstance(v, dict) and "bdata" in v
291+
return isinstance(v, dict) and "bdata" in v and "dtype" in v
292292

293293

294294
def is_none_or_typed_array_spec(v):

0 commit comments

Comments
 (0)