summaryrefslogtreecommitdiff
path: root/redis/commands/core.py
diff options
context:
space:
mode:
authorDustin Oprea <dustin@randomingenuity.com>2022-04-04 05:35:12 -0400
committerGitHub <noreply@github.com>2022-04-04 12:35:12 +0300
commit7b7c6c8867a66493c51ed6525c6a0863f437f530 (patch)
tree3c6bc1d8406ab7dc0d2780449d76598eea71a162 /redis/commands/core.py
parentd41f8aab791fe0d9a620f99ad0b277f5eed47c5f (diff)
downloadredis-py-7b7c6c8867a66493c51ed6525c6a0863f437f530.tar.gz
commands/core.py: Clarify bit type (#2078)
Calling it 'boolean' is misleading in the context of Python.
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r--redis/commands/core.py4
1 files changed, 2 insertions, 2 deletions
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