diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 491e5f781..646bbc643 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -365,8 +365,7 @@ def copy_into(self, from_path: Path, to_path: PurePath) -> None: ) as exec_process: assert exec_process.stdin with open(from_path, "rb") as from_file: - # Bug in mypy, https://github.com/python/mypy/issues/15031 - shutil.copyfileobj(from_file, exec_process.stdin) # type: ignore[misc] + shutil.copyfileobj(from_file, exec_process.stdin) exec_process.stdin.close() exec_process.wait()