From 045954acd31211dc733a143bdf50416acb82bbd3 Mon Sep 17 00:00:00 2001 From: Dustin Oprea Date: Thu, 31 Mar 2022 21:52:18 -0400 Subject: [PATCH] commands/core.py: Clarify bit type Calling it 'boolean' is misleading in the context of Python. --- redis/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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