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.py100 def CheckValue(self, proposed_value): argument
105 if not isinstance(proposed_value, self._acceptable_types):
107 (proposed_value, type(proposed_value), self._acceptable_types))
109 return proposed_value
128 def CheckValue(self, proposed_value): argument
129 if not isinstance(proposed_value, six.integer_types):
131 (proposed_value, type(proposed_value), six.integer_types))
133 if not self._MIN <= proposed_value <= self._MAX:
134 raise ValueError('Value out of range: %d' % proposed_value)
138 proposed_value = self._TYPE(proposed_value)
[all …]