def _is_slicer_op(indices):
    '\n    Check if an indexer contains a slice or ellipsis operator.\n\n    Parameters\n    ----------\n    indices : ndarray\n        Indices to check.\n\n    Returns\n    -------\n    bool\n        Returns True if indices contains a colon or ellipsis operator.\n    '
    if isinstance(indices, tuple):
        return any(((isinstance(i, slice) or (i is ...)) for i in indices))
    return isinstance(indices, slice)
Check if an indexer contains a slice or ellipsis operator.

Parameters
----------
indices : ndarray
    Indices to check.

Returns
-------
bool
    Returns True if indices contains a colon or ellipsis operator.
def _is_slicer_op(indices):
    '\n    Check if an indexer contains a slice or ellipsis operator.\n\n    Parameters\n    ----------\n    indices : ndarray\n        Indices to check.\n\n    Returns\n    -------\n    bool\n        Returns True if indices contains a colon or ellipsis operator.\n    '
    if isinstance(indices, tuple):
        return any(((isinstance(i, slice) or (i is ...)) for i in indices))
    return isinstance(indices, slice)