From c5e8fa75dda5f764d20f66a215d71c21cfa198e1 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Mon, 8 Nov 2021 21:28:50 -0800 Subject: [PATCH] Fix membership check --- isort/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isort/settings.py b/isort/settings.py index 45e0ecb94..681d7b46e 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -464,7 +464,7 @@ def __init__( path_root.glob(src_path) if "*" in str(src_path) else [path_root / src_path] ) for path in full_paths: - if not path in src_paths: + if path not in src_paths: src_paths.append(path) combined_config["src_paths"] = tuple(src_paths)