From d091a118761338a4de75e0f8f1678bf4947440f0 Mon Sep 17 00:00:00 2001 From: abhi-0203 Date: Sat, 22 Aug 2026 04:34:05 +0000 Subject: [PATCH] fix: use identity check for None instead of equality in ascii_tree --- src/ssvc/decision_tables/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssvc/decision_tables/helpers.py b/src/ssvc/decision_tables/helpers.py index 4326236e9..64658de0a 100644 --- a/src/ssvc/decision_tables/helpers.py +++ b/src/ssvc/decision_tables/helpers.py @@ -377,7 +377,7 @@ def ascii_tree(dt: DecisionTable, df: pd.DataFrame | None = None) -> str: Reads a Pandas data frame, builds a decision tree, and returns its ASCII representation. """ # Check for the optional 'row' column and drop it if it exists. - if df == None: + if df is None: df = decision_table_to_longform_df(dt) if "row" in df.columns: