From 5fd12c5ed152aa3b714ac80c4b14b65deca28a6c Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Tue, 5 Sep 2023 14:32:39 +0200 Subject: [PATCH] fix: E721 issue in test_confounds.py --- julearn/transformers/tests/test_confounds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julearn/transformers/tests/test_confounds.py b/julearn/transformers/tests/test_confounds.py index 4a156101b..5ec465c8f 100644 --- a/julearn/transformers/tests/test_confounds.py +++ b/julearn/transformers/tests/test_confounds.py @@ -207,7 +207,7 @@ def test_confound_set_confounds( df_cofound_removed = confound_remover.fit_transform(df_X_confounds) np.random.seed(42) - conf_as_feat = confounds if type(confounds) is list else [confounds] + conf_as_feat = confounds if isinstance(confounds, list) else [confounds] df_confounds = df_X_confounds.loc[:, conf_as_feat] # type: ignore confound_regressions = [ model_class().fit(