def contains(self, item): if self.attribute and self.attribute.attr_type in [ BINARY_SET, NUMBER_SET, STRING_SET ]: # Set attributes assume the values to be serialized are sets. (attr_type, attr_value), = self._to_value([item]).value.items() item = {attr_type[0]: attr_value[0]} return Contains(self, self._to_operand(item))
def contains(self, item): return Contains(self, self._to_operand(item))