Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify bit type in setbit/getbit documentation #2078

Merged
merged 1 commit into from
Apr 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
Expand Down