Skip to content

Commit 961472e

Browse files
committed
workaround python/mypy#15031
1 parent 6e4d8e8 commit 961472e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rubyvenv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def ensure_cache_file(
130130
try:
131131
with tempfile.NamedTemporaryFile(dir=tmpdir, delete=False) as dst:
132132
with get_fileobj() as src:
133-
shutil.copyfileobj(src, dst)
133+
# https://github.com/python/mypy/issues/15031
134+
shutil.copyfileobj(src, dst) # type: ignore[misc]
134135
except BaseException:
135136
os.remove(dst.name)
136137
raise

0 commit comments

Comments
 (0)