Skip to content

Commit d866805

Browse files
committed
Update remove_type_ignore.py
1 parent cb452e9 commit d866805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remove_type_ignore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run(cfg, codebase):
3737
file.seek(0) # rewind file pointer back to start of file
3838

3939
for line_idx in lines_nums:
40-
text[line_idx - 1] = IGNORE_RE.sub("\n", text[line_idx - 1])
40+
text[line_idx - 1] = IGNORE_RE.sub("", text[line_idx - 1])
4141
file.writelines(text)
4242
file.truncate()
4343
file.close()

0 commit comments

Comments
 (0)