Skip to content

Commit 99cf687

Browse files
committed
mypy 0.991 Support
mypy now enables "--show-error-code" by default.
1 parent 2ce1a62 commit 99cf687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
DOC_URI = f"file:/{Path(__file__)}"
1616
DOC_TYPE_ERR = """{}.append(3)
1717
"""
18-
TYPE_ERR_MSG = '"Dict[<nothing>, <nothing>]" has no attribute "append"'
18+
TYPE_ERR_MSG = '"Dict[<nothing>, <nothing>]" has no attribute "append" [attr-defined]'
1919

2020
TEST_LINE = 'test_plugin.py:279:8: error: "Request" has no attribute "id"'
2121
TEST_LINE_WITHOUT_COL = "test_plugin.py:279: " 'error: "Request" has no attribute "id"'
@@ -108,7 +108,7 @@ def foo():
108108
return
109109
unreachable = 1
110110
"""
111-
DOC_ERR_MSG = "Statement is unreachable"
111+
DOC_ERR_MSG = "Statement is unreachable [unreachable]"
112112

113113
# Initialize two workspace folders.
114114
folder1 = tmpdir.mkdir("folder1")

0 commit comments

Comments
 (0)