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

Method _validate_non_negative_integer_or_none

dash/dash_table/Format.py:109–117  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

107 raise ValueError("expected value to a string of length one")
108
109 def _validate_non_negative_integer_or_none(self, value):
110 if value is None:
111 return
112
113 if not isinstance(value, int):
114 raise TypeError("expected value to be an integer")
115
116 if value < 0:
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:

Callers 2

padding_widthMethod · 0.95
precisionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected