Skip to content

Commit

Permalink
workaround python/mypy#15031
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jun 28, 2023
1 parent 6e4d8e8 commit 961472e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rubyvenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def ensure_cache_file(
try:
with tempfile.NamedTemporaryFile(dir=tmpdir, delete=False) as dst:
with get_fileobj() as src:
shutil.copyfileobj(src, dst)
# https://github.com/python/mypy/issues/15031
shutil.copyfileobj(src, dst) # type: ignore[misc]
except BaseException:
os.remove(dst.name)
raise
Expand Down

0 comments on commit 961472e

Please sign in to comment.