Skip to content

Commit 3734458

Browse files
authored
change return type of parse_bollean to bool (#2364)
1 parent 0b27e3e commit 3734458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/commands/graph/query_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def parse_boolean(self, value):
270270
"""
271271
value = value.decode() if isinstance(value, bytes) else value
272272
try:
273-
scalar = strtobool(value)
273+
scalar = True if strtobool(value) else False
274274
except ValueError:
275275
sys.stderr.write("unknown boolean type\n")
276276
scalar = None

0 commit comments

Comments
 (0)