Skip to content

Commit a63cba8

Browse files
Fix fail signature
1 parent 717e176 commit a63cba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def fail(self,
200200
"""Report an error message (unless disabled)."""
201201
# TODO(tushar): Remove `str` support after full migration
202202
if isinstance(msg, ErrorMessage):
203-
self.report(msg, context, 'error', code=code, file=file,
203+
self.report(msg.value, context, 'error', code=msg.code, file=file,
204204
origin=origin, allow_dups=allow_dups)
205205
return
206206

0 commit comments

Comments
 (0)