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

Function raise_format_value_error

plotly/io/_orca.py:33–43  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

31# Utility functions
32# -----------------
33def raise_format_value_error(val):
34 raise ValueError(
35 """
36Invalid value of type {typ} receive as an image format specification.
37 Received value: {v}
38
39An image format must be specified as one of the following string values:
40 {valid_formats}""".format(
41 typ=type(val), v=val, valid_formats=sorted(format_conversions.keys())
42 )
43 )
44
45
46def validate_coerce_format(fmt):

Callers 1

validate_coerce_formatFunction · 0.85

Calls 2

formatMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected