

def __getitem__(self, key):
    if isinstance(self, slice):
        return self._lines[key.start:key.stop:key.step]
    if (not isinstance(key, int)):
        raise TypeError(('Index should be integer, not %s' % classname(key)))
    return self._lines[key]

dataset/ETHPy150Open lukaszb/vimmock/vimmock/mocked.py BufferMock.__getitem__/VarMisuse@15/17 `key`->`self`