Skip to content

Commit 47f82d4

Browse files
Update data.py: continue implementing optional spacedness
1 parent 8bb4ff6 commit 47f82d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def expand_errors(input: list[str], output: list[str], fnam: str) -> None:
533533

534534
for i in range(len(input)):
535535
# The first in the split things isn't a comment
536-
for possible_err_comment in input[i].split(" # ")[1:]:
536+
for possible_err_comment in input[i].split("(?!\\)#")[1:]:
537537
m = re.search(
538538
r"^([ENW]):((?P<col>\d+):)? (?P<message>.*)$", possible_err_comment.strip()
539539
)

0 commit comments

Comments
 (0)