File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,10 @@ def runtest(self) -> None:
234
234
"""Raise an exception if mypy found errors for this item."""
235
235
results = MypyResults .from_session (self .session )
236
236
abspath = str (self .path .resolve ())
237
- errors = results .abspath_errors .get (abspath )
237
+ errors = [
238
+ error .partition (":" )[2 ].strip ()
239
+ for error in results .abspath_errors .get (abspath , [])
240
+ ]
238
241
if errors :
239
242
if not all (
240
243
error .partition (":" )[2 ].partition (":" )[0 ].strip () == "note"
@@ -327,7 +330,7 @@ def from_mypy(
327
330
path , _ , error = line .partition (":" )
328
331
abspath = str (Path (path ).resolve ())
329
332
try :
330
- abspath_errors [abspath ].append (error )
333
+ abspath_errors [abspath ].append (line )
331
334
except KeyError :
332
335
unmatched_lines .append (line )
333
336
You can’t perform that action at this time.
0 commit comments