def get_next_section_start_line(self, data):
        """Get the starting line number of next section.
        It will return -1 if no section was found.
        The section is a section key (e.g. 'Parameters:')
        then the content

        :param data: a list of strings containing the docstring's lines
        :returns: the index of next section else -1

        """
        start = -1
        for i, line in enumerate(data):
            if isin_alone([k + ":" for k in self.opt.values()], line):
                start = i
                break
        return start
def get_next_section_start_line ( self , data ) : start = - 1 for i , line in enumerate ( data ) : if isin_alone ( [ k + ":" for k in self . opt . values ( ) ] , line ) : start = i break return start
Get the starting line number of next section.
        It will return -1 if no section was found.
        The section is a section key (e.g. 'Parameters:')
        then the content

        :param data: a list of strings containing the docstring's lines
        :returns: the index of next section else -1