def error(self, line_number, offset, text, check):
    'Save errors.'
    code = super(_PycodestyleReport, self).error(line_number, offset, text, check)
    if code:
        self.errors.append(dict(text=text, type=code.replace('E', 'C'), col=(offset + 1), lnum=line_number))
Save errors.
def error(self, line_number, offset, text, check):
    
    code = super(_PycodestyleReport, self).error(line_number, offset, text, check)
    if code:
        self.errors.append(dict(text=text, type=code.replace('E', 'C'), col=(offset + 1), lnum=line_number))