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

Class SchemaTypeValidationError

dash/_grouping.py:160–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160class SchemaTypeValidationError(InvalidCallbackReturnValue):
161 def __init__(self, value, full_schema, path, expected_type):
162 super().__init__(
163 msg=f"""
164 Schema: {full_schema}
165 Path: {repr(path)}
166 Expected type: {expected_type}
167 Received value of type {type(value)}:
168 {repr(value)}
169 """
170 )
171
172 @classmethod
173 def check(cls, value, full_schema, path, expected_type):
174 if not isinstance(value, expected_type):
175 raise SchemaTypeValidationError(value, full_schema, path, expected_type)
176
177
178class SchemaLengthValidationError(InvalidCallbackReturnValue):

Callers 1

checkMethod · 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…