Skip to content

Commit 7b7c6c8

Browse files
authored
commands/core.py: Clarify bit type (#2078)
Calling it 'boolean' is misleading in the context of Python.
1 parent d41f8aa commit 7b7c6c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis/commands/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ def __getitem__(self, name: KeyT):
16821682

16831683
def getbit(self, name: KeyT, offset: int) -> ResponseT:
16841684
"""
1685-
Returns a boolean indicating the value of ``offset`` in ``name``
1685+
Returns an integer indicating the value of ``offset`` in ``name``
16861686
16871687
For more information check https://redis.io/commands/getbit
16881688
"""
@@ -2124,7 +2124,7 @@ def __setitem__(self, name: KeyT, value: EncodableT):
21242124

21252125
def setbit(self, name: KeyT, offset: int, value: int) -> ResponseT:
21262126
"""
2127-
Flag the ``offset`` in ``name`` as ``value``. Returns a boolean
2127+
Flag the ``offset`` in ``name`` as ``value``. Returns an integer
21282128
indicating the previous value of ``offset``.
21292129
21302130
For more information check https://redis.io/commands/setbit

0 commit comments

Comments
 (0)