class_docstr: Represents a hunk of a diff.
code: def added_lines(self) -> Generator[tuple[int, str], None, None]:
      current_line_no = self.start
      for line in self.lines:
          if line.startswith("+"):
              yield current_line_no, line[1:]  # elide leading '+'
              current_line_no += 1
          elif line.startswith("-"):
              continue
          else:
              current_line_no += 1
  
file_path: tensorflow/third_party/xla/build_tools/lint/diff_parser.py
imports: import dataclasses
  import re
  import subprocess
  from typing import Generator, Iterable, TypeVar
label_desc: Use image node_id 1 for calling the Hunk obj's underlying member method code with example usage: obj.added_lines() without return types