diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a59a7038..0457ac0c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,14 +14,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.7.0 hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.12.1 hooks: - id: mypy name: mypy 3.8 on cibuildwheel/ diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 491e5f78..646bbc64 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -365,8 +365,7 @@ class OCIContainer: ) 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()