Skip to content

Commit af1dc5a

Browse files
fixup! Simplify testutils
1 parent c5c2349 commit af1dc5a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pylint/testutils/output_line.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ class OutputLine(NamedTuple):
4242
def from_msg(cls, msg: Message) -> OutputLine:
4343
"""Create an OutputLine from a Pylint Message."""
4444
column = cls._get_column(msg.column)
45-
end_line = msg.end_line
46-
end_column = msg.end_column
4745
return cls(
4846
msg.symbol,
4947
msg.line,
5048
column,
51-
end_line,
52-
end_column,
49+
msg.end_line,
50+
msg.end_column,
5351
msg.obj or "",
5452
msg.msg.replace("\r\n", "\n"),
5553
msg.confidence.name,

0 commit comments

Comments
 (0)