Skip to content

Commit a2e1d00

Browse files
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>
1 parent 334707b commit a2e1d00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cicd_utils/cicd/test_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from plotly import graph_objects as go
1515

1616
if TYPE_CHECKING:
17-
from collections.abc import Iterator
17+
from collections.abc import Generator
1818
from importlib.abc import Loader
1919
from importlib.machinery import ModuleSpec
2020
from types import ModuleType
@@ -41,7 +41,7 @@ def plotly_show_browser(fig: go.Figure, renderer: str = "browser", **kwargs: Any
4141

4242

4343
@contextlib.contextmanager
44-
def patch_plotly_show() -> Iterator[None]:
44+
def patch_plotly_show() -> Generator[None]:
4545
"""Patch the :func:`plotly.io.show()` function to skip any rendering steps
4646
and, instead, simply call
4747
:func:`plotly.io._utils.validate_coerce_fig_to_dict()`.

0 commit comments

Comments
 (0)