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

Function validate_id_string

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

Source from the content-addressed store, hash-verified

104
105
106def validate_id_string(arg):
107 arg_id = arg.component_id
108
109 invalid_chars = ".{"
110 invalid_found = [x for x in invalid_chars if x in arg_id]
111 if invalid_found:
112 raise exceptions.InvalidComponentIdError(
113 f"""
114 The element `{arg_id}` contains `{"`, `".join(invalid_found)}` in its ID.
115 Characters `{"`, `".join(invalid_chars)}` are not allowed in IDs.
116 """
117 )
118
119
120def validate_output_spec(output, output_spec, Output):

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…