Returns the current line from the file while incrementing the index.

def _get_line(self) -> str:
        """Returns the current line from the file while incrementing the index."""
        line = self.in_lines[self.index]
        self.index += 1
        return line