Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baa7865 commit f74831cCopy full SHA for f74831c
1 file changed
mypy_primer/model.py
@@ -540,7 +540,11 @@ def canonicalise(line: str) -> str:
540
# mypy's output appears to be nondeterministic for some same line errors, e.g. on pypa/pip
541
# Work around that by ignoring identical removal and addition pairs, e.g.
542
# "- a.py:1: error xyz" and "+ a.py:1: error xyz"
543
- diff_lines = [line for line in d.compare(old_lines, new_lines) if line[0] in ("+", "-")]
+ diff_lines = [
544
+ line
545
+ for line in d.compare(old_lines, new_lines)
546
+ if line[0] in ("+", "-") or "INTERNAL ERROR" in line
547
+ ]
548
net_change: dict[str, int] = defaultdict(int)
549
for line in diff_lines:
550
cline = canonicalise(line)
0 commit comments