def _adjust_type_comments(self, closing_bracket_lines, whitespace_lines):
    'Adjust any type comments affected by closing bracket lines.\n\n    Lines that contain nothing but closing brackets don\'t appear in the\n    bytecode, so for, e.g.,\n      v = [\n        "hello",\n        "world",\n      ]  # line 4\n    line 4 is where any type comment for \'v\' should be put, but the\n    STORE_NAME opcode for \'v\' is at line 3. If we find a type comment put\n    (wrongly) on line 3, we\'ll report an error, and if we find a type comment\n    on line 4, we\'ll move it to line 3.\n\n    Args:\n      closing_bracket_lines: A set of lines containing only closing brackets,\n        to be used for adjusting affected type comments.\n      whitespace_lines: A set of lines containing only whitespace. Its union\n        with closing_bracket_lines is a set of consecutive lines.\n    '
    target = (min((closing_bracket_lines | whitespace_lines)) - 1)
    if (target in self._type_comments):
        self._errorlog.ignored_type_comment(self._filename, target, self._type_comments[target][1])
        del self._type_comments[target]
    end = max(closing_bracket_lines)
    if (end in self._type_comments):
        self._type_comments[target] = self._type_comments[end]
        del self._type_comments[end]
Adjust any type comments affected by closing bracket lines.

Lines that contain nothing but closing brackets don't appear in the
bytecode, so for, e.g.,
  v = [
    "hello",
    "world",
  ]  # line 4
line 4 is where any type comment for 'v' should be put, but the
STORE_NAME opcode for 'v' is at line 3. If we find a type comment put
(wrongly) on line 3, we'll report an error, and if we find a type comment
on line 4, we'll move it to line 3.

Args:
  closing_bracket_lines: A set of lines containing only closing brackets,
    to be used for adjusting affected type comments.
  whitespace_lines: A set of lines containing only whitespace. Its union
    with closing_bracket_lines is a set of consecutive lines.
def _adjust_type_comments(self, closing_bracket_lines, whitespace_lines):
    'Adjust any type comments affected by closing bracket lines.\n\n    Lines that contain nothing but closing brackets don\'t appear in the\n    bytecode, so for, e.g.,\n      v = [\n        "hello",\n        "world",\n      ]  # line 4\n    line 4 is where any type comment for \'v\' should be put, but the\n    STORE_NAME opcode for \'v\' is at line 3. If we find a type comment put\n    (wrongly) on line 3, we\'ll report an error, and if we find a type comment\n    on line 4, we\'ll move it to line 3.\n\n    Args:\n      closing_bracket_lines: A set of lines containing only closing brackets,\n        to be used for adjusting affected type comments.\n      whitespace_lines: A set of lines containing only whitespace. Its union\n        with closing_bracket_lines is a set of consecutive lines.\n    '
    target = (min((closing_bracket_lines | whitespace_lines)) - 1)
    if (target in self._type_comments):
        self._errorlog.ignored_type_comment(self._filename, target, self._type_comments[target][1])
        del self._type_comments[target]
    end = max(closing_bracket_lines)
    if (end in self._type_comments):
        self._type_comments[target] = self._type_comments[end]
        del self._type_comments[end]