From f46fc37b2a207f89491d1507a005f1cd100a7208 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 21 Oct 2024 18:12:27 -0400 Subject: [PATCH] chore: mypy bug fixed Signed-off-by: Henry Schreiner --- cibuildwheel/oci_container.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()