def _process_type(self, lineno, code, data, is_nested):
    'Process a type: comment.'
    if ((not code) and is_nested):
        return
    if (lineno in self._type_comments):
        self._errorlog.invalid_directive(self._filename, lineno, 'Multiple type comments on the same line.')
    if (data == 'ignore'):
        if (not code):
            self._ignore.start_range(lineno, True)
        else:
            self._ignore.set_line(lineno, True)
    else:
        self._type_comments[lineno] = (code, data)
Process a type: comment.
def _process_type(self, lineno, code, data, is_nested):
    
    if ((not code) and is_nested):
        return
    if (lineno in self._type_comments):
        self._errorlog.invalid_directive(self._filename, lineno, 'Multiple type comments on the same line.')
    if (data == 'ignore'):
        if (not code):
            self._ignore.start_range(lineno, True)
        else:
            self._ignore.set_line(lineno, True)
    else:
        self._type_comments[lineno] = (code, data)