We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb452e9 commit d866805Copy full SHA for d866805
remove_type_ignore.py
@@ -37,7 +37,7 @@ def run(cfg, codebase):
37
file.seek(0) # rewind file pointer back to start of file
38
39
for line_idx in lines_nums:
40
- text[line_idx - 1] = IGNORE_RE.sub("\n", text[line_idx - 1])
+ text[line_idx - 1] = IGNORE_RE.sub("", text[line_idx - 1])
41
file.writelines(text)
42
file.truncate()
43
file.close()
0 commit comments