Home
last modified time | relevance | path

Searched refs:proposed_value (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dtype_checkers.py101 def CheckValue(self, proposed_value): argument
106 if not isinstance(proposed_value, self._acceptable_types):
108 (proposed_value, type(proposed_value), self._acceptable_types))
114 return self._acceptable_types[0](proposed_value)
115 return proposed_value
134 def CheckValue(self, proposed_value): argument
135 if not isinstance(proposed_value, numbers.Integral):
137 (proposed_value, type(proposed_value), six.integer_types))
139 if not self._MIN <= int(proposed_value) <= self._MAX:
140 raise ValueError('Value out of range: %d' % proposed_value)
[all …]