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:
234234 """Raise an exception if mypy found errors for this item."""
235235 results = MypyResults .from_session (self .session )
236236 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+ ]
238241 if errors :
239242 if not all (
240243 error .partition (":" )[2 ].partition (":" )[0 ].strip () == "note"
@@ -327,7 +330,7 @@ def from_mypy(
327330 path , _ , error = line .partition (":" )
328331 abspath = str (Path (path ).resolve ())
329332 try :
330- abspath_errors [abspath ].append (error )
333+ abspath_errors [abspath ].append (line )
331334 except KeyError :
332335 unmatched_lines .append (line )
333336
You can’t perform that action at this time.
0 commit comments