We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43364c1 commit eb75b05Copy full SHA for eb75b05
mypy/test/update_data.py
@@ -64,7 +64,7 @@ def _iter_fixes(
64
fix_lines = []
65
for lineno, source_line in enumerate(source_lines, start=1):
66
reports = reports_by_line.get((file_path, lineno))
67
- comment_match = re.search(r"(?P<indent>\s+)(?P<comment># [EWN]: .+)$", source_line)
+ comment_match = re.search(r"(?P<indent>\s+)(?P<comment># ?[EWN]: .+)$", source_line)
68
if comment_match:
69
source_line = source_line[: comment_match.start("indent")] # strip old comment
70
if reports:
0 commit comments