From 19087d2626464ab123ef48ccf436703c4496fd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaka=20Kokos=CC=8Car?= Date: Fri, 8 Dec 2023 11:13:33 +0100 Subject: [PATCH] widgets.data: fix Deprecation Warning; Domain.__bool__ is ambiguous --- orangecontrib/survival_analysis/widgets/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orangecontrib/survival_analysis/widgets/data.py b/orangecontrib/survival_analysis/widgets/data.py index 60af0e7..55facb7 100644 --- a/orangecontrib/survival_analysis/widgets/data.py +++ b/orangecontrib/survival_analysis/widgets/data.py @@ -33,7 +33,7 @@ def get_survival_endpoints( ) -> Tuple[Optional[Variable], Optional[Variable]]: time_var = None event_var = None - if domain and contains_survival_endpoints(domain): + if domain is not None and contains_survival_endpoints(domain): class_vars = domain.class_vars for var in class_vars: surv_var_type = var.attributes[TIME_TO_EVENT_VAR]