

def __setitem__(self, key, value):
    if isinstance(key, slice):
        self._lines[key.start:key.stop:key.step] = self
    elif (not isinstance(key, int)):
        raise TypeError(('Indes should be integer, not %s' % classname(key)))
    self._lines[key] = value

dataset/ETHPy150Open lukaszb/vimmock/vimmock/mocked.py BufferMock.__setitem__/VarMisuse@41/45 `value`->`self`