Skip to content

Commit eb75b05

Browse files
Update update_data.py: make the space in error comments optional
1 parent 43364c1 commit eb75b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/update_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _iter_fixes(
6464
fix_lines = []
6565
for lineno, source_line in enumerate(source_lines, start=1):
6666
reports = reports_by_line.get((file_path, lineno))
67-
comment_match = re.search(r"(?P<indent>\s+)(?P<comment># [EWN]: .+)$", source_line)
67+
comment_match = re.search(r"(?P<indent>\s+)(?P<comment># ?[EWN]: .+)$", source_line)
6868
if comment_match:
6969
source_line = source_line[: comment_match.start("indent")] # strip old comment
7070
if reports:

0 commit comments

Comments
 (0)