From dae3351862ccc84f84045dcc1b8b9a023a988ca6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 18:18:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.2) - [github.com/kynan/nbstripout: 0.9.0 → 0.9.1](https://github.com/kynan/nbstripout/compare/0.9.0...0.9.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ceee0ce..b89b1ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,12 +26,12 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.2 hooks: - id: ruff-check - id: ruff-format - repo: https://github.com/kynan/nbstripout - rev: 0.9.0 + rev: 0.9.1 hooks: - id: nbstripout - repo: https://github.com/executablebooks/mdformat From cd14e38feabde1f8ef305e1e243da5216be88bf2 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 1 Mar 2026 11:05:56 +0100 Subject: [PATCH 2/2] Fix ty check for CoiledFunction construction --- src/pytask_parallel/wrappers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pytask_parallel/wrappers.py b/src/pytask_parallel/wrappers.py index e26deba..219f3fc 100644 --- a/src/pytask_parallel/wrappers.py +++ b/src/pytask_parallel/wrappers.py @@ -178,7 +178,9 @@ def wrap_task_in_process( # noqa: PLR0913 def rewrap_task_with_coiled_function(task: PTask) -> CoiledFunction: - wrapped = CoiledFunction(wrap_task_in_process, **task.attributes["coiled_kwargs"]) + wrapped = cast("Any", CoiledFunction)( + wrap_task_in_process, **task.attributes["coiled_kwargs"] + ) decorated = functools.wraps(wrap_task_in_process)( cast("Callable[..., Any]", wrapped) )