MCPcopy Index your code
hub / github.com/bqplot/bqplot / array_supported_kinds

Function array_supported_kinds

bqplot/traits.py:225–232  ·  view source on GitHub ↗
(kinds='biufMSUO')

Source from the content-addressed store, hash-verified

223
224
225def array_supported_kinds(kinds='biufMSUO'):
226 def validator(trait, value):
227 if value.dtype.kind not in kinds:
228 raise TraitError('Array type not supported for trait %s of class %s: expected a \
229 array of kind in list %r and got an array of type %s (kind %s)' % (
230 trait.name, trait.this_class, list(kinds), value.dtype, value.dtype.kind))
231 return value
232 return validator
233
234
235# DataFrame

Callers 3

LinesClass · 0.85
BoxplotClass · 0.85
BarsClass · 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…