Searched refs:attr_spec (Results 1 – 1 of 1) sorted by relevance
781 def _encode_enum(self, attr_spec, value): argument782 enum = self.consts[attr_spec['enum']]783 if enum.type == 'flags' or attr_spec.get('enum-as-flags', False):792 def _get_scalar(self, attr_spec, value): argument796 if 'enum' in attr_spec:797 return self._encode_enum(attr_spec, value)798 if attr_spec.display_hint:799 return self._from_string(value, attr_spec)910 def _decode_enum(self, raw, attr_spec): argument911 enum = self.consts[attr_spec['enum']][all …]