Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 507a4f2

Browse files
committed
Do not eat whitespace from the message
mypy might add leading whitespace to messages, it's like a form of indentation, to help with readability. Keep these!
1 parent 51a43db commit 507a4f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Mypy(PythonLinter):
5353

5454
regex = (
5555
r'^(?P<filename>.+?):(?P<line>\d+):((?P<col>\d+):)?\s*'
56-
r'(?P<error_type>[^:]+):\s*(?P<message>.+?)(\s\s\[(?P<code>.+)\])?$'
56+
r'(?P<error_type>[^:]+):\s(?P<message>.+?)(\s\s\[(?P<code>.+)\])?$'
5757
)
5858
line_col_base = (1, 1)
5959
tempfile_suffix = 'py'

0 commit comments

Comments
 (0)