Skip to content

Commit fd636a1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1bc3676 commit fd636a1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def expand_errors(input: list[str], output: list[str], fnam: str) -> None:
545545
elif m.group(1) == "W":
546546
severity = "warning"
547547
col = m.group("col")
548-
message = m.group("message")
548+
message = m.group("message")
549549
message = message.replace(r"\#", "#") # adds back escaped # character
550550
# Message may, and probably does, include leading spaces
551551
if col is None:

test-data/unit/check-error-comments.test

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ x: int = 1
55
x: int = "hi" # E: Incompatible types in assignment (expression has type "str", variable has type "int")
66

77
[case emptyLineErrorComment-xfail]
8-
# E:
8+
# E:
99

1010
[case oddErrorComments]
1111
x: int = "hi"#E: Incompatible types in assignment (expression has type "str", variable has type "int")
@@ -47,8 +47,3 @@ x: int = "hi" # e: Incompatible types in assignment (expression has type "str",
4747
x2: int = "hi" # E Incompatible types in assignment (expression has type "str", variable has type "int")
4848
x3: int = "hi" # e Incompatible types in assignment (expression has type "str", variable has type "int")
4949
x4: int = "hi" # e Incompatible types in assignment (expression has type "str", variable has type "int")
50-
51-
52-
53-
54-

0 commit comments

Comments
 (0)