def update(self, other):

        for error_type in (WARNING, ERROR):
            self.marks[error_type].extend(other.marks[error_type])

        # Errors override warnings on the same line
        for line, error_type in other.lines.items():
            current_type = self.lines.get(line)

            if current_type is None or current_type == WARNING:
                self.lines[line] = error_type

        self.newlines = other.newlines
Update this object with another Highlight.
dataset/ETHPy150Open SublimeLinter/SublimeLinter3/lint/highlight.py/Highlight.update