MCPcopy Index your code
hub / github.com/plotly/plotly.py / vc_scalar

Method vc_scalar

_plotly_utils/basevalidators.py:1425–1429  ·  view source on GitHub ↗

Helper to validate/coerce a scalar color

(self, v)

Source from the content-addressed store, hash-verified

1423 return invalid_els
1424
1425 def vc_scalar(self, v):
1426 """Helper to validate/coerce a scalar color"""
1427 return ColorValidator.perform_validate_coerce(
1428 v, allow_number=self.numbers_allowed()
1429 )
1430
1431 @staticmethod
1432 def perform_validate_coerce(v, allow_number=None):

Callers 1

validate_coerceMethod · 0.95

Calls 2

numbers_allowedMethod · 0.95

Tested by

no test coverage detected