summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-09-04 10:53:01 +0300
committerGitHub <noreply@github.com>2022-09-04 10:53:01 +0300
commit37344582ec8689035d9106a2141409e78be2606d (patch)
tree0d2ee94f3ccab027c5f67885aa6f544a63cc0ff2
parent0b27e3ebdfd7e7dd67222bcb043fcdfcc907bd42 (diff)
downloadredis-py-37344582ec8689035d9106a2141409e78be2606d.tar.gz
change return type of parse_bollean to bool (#2364)
-rw-r--r--redis/commands/graph/query_result.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/commands/graph/query_result.py b/redis/commands/graph/query_result.py
index b88b4b6..7c7f58b 100644
--- a/redis/commands/graph/query_result.py
+++ b/redis/commands/graph/query_result.py
@@ -270,7 +270,7 @@ class QueryResult:
"""
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