From d65f40e8c26d283c0d94e0d21aee22fa28cf5309 Mon Sep 17 00:00:00 2001 From: dvora-h Date: Wed, 31 Aug 2022 13:46:44 +0300 Subject: [PATCH] change return type of parse_bollean to bool --- redis/commands/graph/query_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/commands/graph/query_result.py b/redis/commands/graph/query_result.py index b88b4b656c..7c7f58b99f 100644 --- a/redis/commands/graph/query_result.py +++ b/redis/commands/graph/query_result.py @@ -270,7 +270,7 @@ def parse_boolean(self, value): """ value = value.decode() if isinstance(value, bytes) else value try: - scalar = strtobool(value) + scalar = True if strtobool(value) else False except ValueError: sys.stderr.write("unknown boolean type\n") scalar = None