MCPcopy Index your code
hub / github.com/plotly/dash / _can_serialize

Function _can_serialize

dash/_validate.py:265–272  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

263 return isinstance(val, valid_props)
264
265 def _can_serialize(val):
266 if not (_valid_child(val) or _valid_prop(val)):
267 return False
268 try:
269 to_json(val)
270 except TypeError:
271 return False
272 return True
273
274 def _validate_value(val, index=None):
275 # val is a Component

Callers 1

_validate_valueFunction · 0.85

Calls 3

_valid_childFunction · 0.85
_valid_propFunction · 0.85
to_jsonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…