From a2e1d0092ea3a1781cca8462a0e41ffeb71e92fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 24 May 2026 06:09:12 +0000 Subject: [PATCH 1/2] fix: use Generator instead of Iterator for @contextmanager return type Agent-Logs-Url: https://github.com/tpvasconcelos/ridgeplot/sessions/07482249-9299-4ad8-8f1a-9641d19862de Co-authored-by: tpvasconcelos <17701527+tpvasconcelos@users.noreply.github.com> --- cicd_utils/cicd/test_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cicd_utils/cicd/test_helpers.py b/cicd_utils/cicd/test_helpers.py index 12e34396..a44a00be 100644 --- a/cicd_utils/cicd/test_helpers.py +++ b/cicd_utils/cicd/test_helpers.py @@ -14,7 +14,7 @@ from plotly import graph_objects as go if TYPE_CHECKING: - from collections.abc import Iterator + from collections.abc import Generator from importlib.abc import Loader from importlib.machinery import ModuleSpec from types import ModuleType @@ -41,7 +41,7 @@ def plotly_show_browser(fig: go.Figure, renderer: str = "browser", **kwargs: Any @contextlib.contextmanager -def patch_plotly_show() -> Iterator[None]: +def patch_plotly_show() -> Generator[None]: """Patch the :func:`plotly.io.show()` function to skip any rendering steps and, instead, simply call :func:`plotly.io._utils.validate_coerce_fig_to_dict()`. From 86a8c8dc8fef8ed46bd9b98b7c8a360f9e5919b2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 24 May 2026 06:13:00 +0000 Subject: [PATCH 2/2] docs: add changelog entry for PR #374 (pre-commit autoupdate) Agent-Logs-Url: https://github.com/tpvasconcelos/ridgeplot/sessions/7f739030-a077-4f38-9fca-09f0bf76a9bf Co-authored-by: tpvasconcelos <17701527+tpvasconcelos@users.noreply.github.com> --- docs/reference/changelog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index 8045e655..5211e960 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -5,7 +5,9 @@ This document outlines the list of changes to ridgeplot between each release. Fo Unreleased changes ------------------ -- ... +### CI/CD + +- pre-commit autoupdate ({gh-pr}`374`) ---