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

Method _validate_named

dash/dash_table/Format.py:119–121  ·  view source on GitHub ↗
(self, value, named_values)

Source from the content-addressed store, hash-verified

117 raise ValueError("expected value to be non-negative", str(value))
118
119 def _validate_named(self, value, named_values):
120 if value not in named_values:
121 raise TypeError("expected value to be one of", str(list(named_values)))
122
123 def _validate_string(self, value):
124 if not isinstance(value, (str, "".__class__)):

Callers 8

alignMethod · 0.95
groupMethod · 0.95
paddingMethod · 0.95
schemeMethod · 0.95
signMethod · 0.95
symbolMethod · 0.95
trimMethod · 0.95
si_prefixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected