(self)
return indices
List all indices in the Sketch, or those that belong to a timeline.

        Returns:
            List of index names.
List all indices in the Sketch, or those that belong to a timeline.
List all indices in the Sketch or those that belong to a timeline .
def _get_sketch_indices(self):
        """List all indices in the Sketch, or those that belong to a timeline.

        Returns:
            List of index names.
        """
        active_timelines = self.sketch.active_timelines

        if self.timeline_ids:
            indices = [t.searchindex.index_name for t in active_timelines
                       if t.id in self.timeline_ids]
        else:
            indices = [t.searchindex.index_name for t in active_timelines]

        return indices
def _get_sketch_indices ( self ) : active_timelines = self . sketch . active_timelines if self . timeline_ids : indices = [ t . searchindex . index_name for t in active_timelines if t . id in self . timeline_ids ] else : indices = [ t . searchindex . index_name for t in active_timelines ] return indices