MCPcopy Index your code
hub / github.com/plotly/plotly.py / validate_coerce

Method validate_coerce

_plotly_utils/basevalidators.py:416–425  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

414 list, numpy array, or pandas Series""".format(plotly_name=self.plotly_name)
415
416 def validate_coerce(self, v):
417 if is_none_or_typed_array_spec(v):
418 pass
419 elif is_homogeneous_array(v):
420 v = copy_to_readonly_numpy_array(v)
421 elif is_simple_array(v):
422 v = to_scalar_or_list(v)
423 else:
424 self.raise_invalid_val(v)
425 return v
426
427
428class EnumeratedValidator(BaseValidator):

Callers

nothing calls this directly

Calls 6

is_homogeneous_arrayFunction · 0.85
is_simple_arrayFunction · 0.85
to_scalar_or_listFunction · 0.85
raise_invalid_valMethod · 0.80

Tested by

no test coverage detected