We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa17b0 commit 277f1bbCopy full SHA for 277f1bb
packages/python/plotly/_plotly_utils/basevalidators.py
@@ -207,6 +207,13 @@ def is_homogeneous_array(v):
207
return False
208
209
210
+def is_typed_array_spec(v):
211
+ """
212
+ Return whether a value is considered to be a typed array spec for plotly.js
213
214
+ return isinstance(v, dict) and "bdata" in v
215
+
216
217
def is_simple_array(v):
218
"""
219
Return whether a value is considered to be an simple array
@@ -404,6 +411,9 @@ def validate_coerce(self, v):
404
411
if v is None:
405
412
# Pass None through
406
413
pass
414
+ elif is_typed_array_spec(v):
415
+ # Pass typed array spec through
416
+ pass
407
417
elif is_homogeneous_array(v):
408
418
v = copy_to_readonly_numpy_array(v)
409
419
elif is_simple_array(v):
0 commit comments