From b4d1e1776506eb697afb52bce2a99c3d1c845cf5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:45:06 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#2054) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.7.0) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.12.1) * chore: mypy bug fixed Signed-off-by: Henry Schreiner --------- Signed-off-by: Henry Schreiner Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner --- .pre-commit-config.yaml | 4 ++-- cibuildwheel/oci_container.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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()