parameters: (self: _IndexT, slobj: slice)
return_statement: return type(self)._simple_new(res, name=self._name)
docstring: Fastpath for __getitem__ when we know we have a slice.
docstring_summary: Fastpath for __getitem__ when we know we have a slice.
docstring_tokens: Fastpath for __getitem__ when we know we have a slice .
function: def _getitem_slice(self: _IndexT, slobj: slice) -> _IndexT:
          """
          Fastpath for __getitem__ when we know we have a slice.
          """
          res = self._data[slobj]
          return type(self)._simple_new(res, name=self._name)
function_tokens: def _getitem_slice ( self : _IndexT , slobj : slice ) -> _IndexT : res = self . _data [ slobj ] return type ( self ) . _simple_new ( res , name = self . _name )