From 7b7c6c8867a66493c51ed6525c6a0863f437f530 Mon Sep 17 00:00:00 2001 From: Dustin Oprea Date: Mon, 4 Apr 2022 05:35:12 -0400 Subject: commands/core.py: Clarify bit type (#2078) Calling it 'boolean' is misleading in the context of Python. --- redis/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redis/commands/core.py') diff --git a/redis/commands/core.py b/redis/commands/core.py index c367827..55ec5ec 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -1682,7 +1682,7 @@ class BasicKeyCommands(CommandsProtocol): def getbit(self, name: KeyT, offset: int) -> ResponseT: """ - Returns a boolean indicating the value of ``offset`` in ``name`` + Returns an integer indicating the value of ``offset`` in ``name`` For more information check https://redis.io/commands/getbit """ @@ -2124,7 +2124,7 @@ class BasicKeyCommands(CommandsProtocol): def setbit(self, name: KeyT, offset: int, value: int) -> ResponseT: """ - Flag the ``offset`` in ``name`` as ``value``. Returns a boolean + Flag the ``offset`` in ``name`` as ``value``. Returns an integer indicating the previous value of ``offset``. For more information check https://redis.io/commands/setbit -- cgit v1.2.1