Searched refs:attr_spec (Results 1 – 1 of 1) sorted by relevance
799 def _encode_enum(self, attr_spec, value): argument800 enum = self.consts[attr_spec['enum']]801 if enum.type == 'flags' or attr_spec.get('enum-as-flags', False):810 def _get_scalar(self, attr_spec, value): argument814 if 'enum' in attr_spec:815 return self._encode_enum(attr_spec, value)816 if attr_spec.display_hint:817 return self._from_string(value, attr_spec)928 def _decode_enum(self, raw, attr_spec): argument929 enum = self.consts[attr_spec['enum']][all …]