From 613be89b6ce3449f21255182b437447942c3d0ee Mon Sep 17 00:00:00 2001 From: Carl Buchholz <32228189+aGuyLearning@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:37:42 +0100 Subject: [PATCH] changed type to iterable --- ehrapy/plot/_survival_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ehrapy/plot/_survival_analysis.py b/ehrapy/plot/_survival_analysis.py index fdb9c9c2..10af4537 100644 --- a/ehrapy/plot/_survival_analysis.py +++ b/ehrapy/plot/_survival_analysis.py @@ -13,7 +13,7 @@ from ehrapy.plot import scatter if TYPE_CHECKING: - from collections.abc import Sequence + from collections.abc import Iterable, Sequence from xmlrpc.client import Boolean from anndata import AnnData @@ -304,7 +304,7 @@ def kaplan_meier( def cox_ph_forestplot( cox_ph: CoxPHFitter, *, - labels: list[str] | None = None, + labels: Iterable[str] | None = None, fig_size: tuple = (10, 10), t_adjuster: float = 0.1, ecolor: str = "dimgray",