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

Function validate_id_dict

dash/_validate.py:88–103  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

86
87
88def validate_id_dict(arg):
89 arg_id = arg.component_id
90
91 for k in arg_id:
92 # Need to keep key type validation on the Python side, since
93 # non-string keys will be converted to strings in json.dumps and may
94 # cause unwanted collisions
95 if not isinstance(k, str):
96 raise exceptions.IncorrectTypeException(
97 dedent(
98 f"""
99 Wildcard ID keys must be non-empty strings,
100 found {k!r} in id {arg_id!r}
101 """
102 )
103 )
104
105
106def validate_id_string(arg):

Callers 1

validate_callback_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…