diff --git a/redis/commands/core.py b/redis/commands/core.py index c367827359..55ec5ecd16 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -1682,7 +1682,7 @@ def __getitem__(self, name: KeyT): 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 @@ def __setitem__(self, name: KeyT, value: EncodableT): 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