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

Function validate_index

dash/_validate.py:397–403  ·  view source on GitHub ↗
(name, checks, index)

Source from the content-addressed store, hash-verified

395
396
397def validate_index(name, checks, index):
398 missing = [i for check, i in checks if not re.compile(check).search(index)]
399 if missing:
400 plural = "s" if len(missing) > 1 else ""
401 raise exceptions.InvalidIndexException(
402 f"Missing item{plural} {', '.join(missing)} in {name}."
403 )
404
405
406def validate_layout_type(value):

Callers

nothing calls this directly

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…