From 5d70c6bef06cca14cd32275dad24232156f2368b Mon Sep 17 00:00:00 2001 From: Junho Lee <53921230+junholee6a@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:16:22 -0400 Subject: [PATCH] Reorder conditions for consistency Co-authored-by: Taylor Turner --- dataprofiler/labelers/data_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataprofiler/labelers/data_processing.py b/dataprofiler/labelers/data_processing.py index db844635..2213fd72 100644 --- a/dataprofiler/labelers/data_processing.py +++ b/dataprofiler/labelers/data_processing.py @@ -1894,7 +1894,7 @@ def __init__( random_state = random.Random(random_state) elif isinstance(random_state, (list, tuple)) and len(random_state) == 3: # tuple required for random state to be set, lists do not work - if isinstance(random_state[1], list) and isinstance(random_state, list): + if isinstance(random_state, list) and isinstance(random_state[1], list): random_state[1] = tuple(random_state[1]) if isinstance(random_state, list): random_state = tuple(random_state)