Skip to content

Commit

Permalink
widgets.data: fix Deprecation Warning; Domain.__bool__ is ambiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
JakaKokosar committed Dec 8, 2023
1 parent 76ae049 commit 19087d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/survival_analysis/widgets/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 19087d2

Please sign in to comment.