MCPcopy
hub / github.com/plotly/dash / _validate_id

Function _validate_id

dash/_validate.py:431–439  ·  view source on GitHub ↗
(comp)

Source from the content-addressed store, hash-verified

429
430 def _validate(value):
431 def _validate_id(comp):
432 component_id = stringify_id(getattr(comp, "id", None))
433 if component_id and component_id in component_ids:
434 raise exceptions.DuplicateIdError(
435 f"""
436 Duplicate component id found in the initial layout: `{component_id}`
437 """
438 )
439 component_ids.add(component_id)
440
441 _validate_id(value)
442

Callers 1

_validateFunction · 0.85

Calls 2

stringify_idFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…