Skip to content

Commit 29c5450

Browse files
Update mypy/test/data.py: .strip the message
1 parent ba6afdb commit 29c5450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def expand_errors(input: list[str], output: list[str], fnam: str) -> None:
545545
elif m.group(1) == "W":
546546
severity = "warning"
547547
col = m.group("col")
548-
message = m.group("message")
548+
message = m.group("message").strip()
549549
message = message.replace(r"\#", "#") # adds back escaped # character
550550
if col is None:
551551
output.append(f"{fnam}:{i + 1}: {severity}: {message}")

0 commit comments

Comments
 (0)