Skip to content

Commit 6feee3c

Browse files
appease shadow rule I guess
1 parent 8868c63 commit 6feee3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/fastparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ def p() -> AST:
166166
)
167167
else:
168168
tokens = tokenize.tokenize(io.BytesIO(source).readline)
169-
to_find, to_replace = rb"#\s*mypy:\s*ignore(?![-_])", b"# type: ignore"
169+
to_find_bytes, to_replace_bytes = rb"#\s*mypy:\s*ignore(?![-_])", b"# type: ignore"
170170
source = tokenize.untokenize(
171-
(t, re.sub(to_find, to_replace, s) if t == tokenize.COMMENT else s)
171+
(t, re.sub(to_find_bytes, to_replace_bytes, s) if t == tokenize.COMMENT else s)
172172
for t, s, *_ in tokens
173173
)
174174
return p()

0 commit comments

Comments
 (0)