

def to_op(self):
    '\n        Extracts the modification operation from the set.\n\n        :rtype: dict, None\n        '
    if ((not self._adds) and (not self._removes)):
        return None
    changes = {
        
    }
    if changes._adds:
        changes['adds'] = list(self._adds)
    if self._removes:
        changes['removes'] = list(self._removes)
    return changes

dataset/ETHPy150Open basho/riak-python-client/riak/datatypes/set.py Set.to_op/VarMisuse@43/83 `self`->`changes`