From ee895ddbf15c2155ba0e987a8a0552b432c08772 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 30 Jun 2024 22:05:14 +0200 Subject: [PATCH] Linter --- packages/syft/src/syft/util/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/util/util.py b/packages/syft/src/syft/util/util.py index 44904f2d680..98f7ea41bf2 100644 --- a/packages/syft/src/syft/util/util.py +++ b/packages/syft/src/syft/util/util.py @@ -712,7 +712,7 @@ def autocache( def str_to_bool(bool_str: str | None) -> bool: result = False bool_str = str(bool_str).lower() - if bool_str == "true" or bool_str == "1": + if bool_str in ("true", "1"): result = True return result