We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62ebafa commit 8c81ffbCopy full SHA for 8c81ffb
pyls_mypy/plugin.py
@@ -31,7 +31,7 @@ def pyls_lint(document):
31
# There may be a better solution, but mypy does not provide end
32
'end': {'line': lineno - 1, 'character': offset + 1}
33
},
34
- 'message': msg,
+ 'message': msg.strip(),
35
'severity': errno
36
})
37
test/test_plugin.py
@@ -11,6 +11,6 @@ def test_plugin():
11
12
assert len(diags) == 1
13
diag = diags[0]
14
- assert diag['message'] == ' Dict[<nothing>, <nothing>] has no attribute "append"'
+ assert diag['message'] == 'Dict[<nothing>, <nothing>] has no attribute "append"'
15
assert diag['range']['start'] == {'line': 0, 'character': 0}
16
assert diag['range']['end'] == {'line': 0, 'character': 1}
0 commit comments