Skip to content

Commit 8c75e85

Browse files
committed
updating a few docstrings
1 parent 0a7701e commit 8c75e85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

redis/client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,12 @@ def sunionstore(self, dest, keys, *args):
771771

772772
#### SORTED SET COMMANDS ####
773773
def zadd(self, name, value=None, score=None, **pairs):
774-
"Add a member to a sorted set. If value and score"
774+
"""
775+
For each kwarg in ``pairs``, add that item and it's score to the
776+
sorted set ``name``.
777+
778+
The ``value`` and ``score`` arguments are deprecated.
779+
"""
775780
all_pairs = []
776781
if value is not None or score is not None:
777782
if value is None or score is None:
@@ -882,7 +887,7 @@ def zrevrange(self, name, start, num, withscores=False):
882887
``start`` and ``num`` can be negative, indicating the end of the range.
883888
884889
``withscores`` indicates to return the scores along with the values
885-
as a dictionary of value => score
890+
The return type is a list of (value, score) pairs
886891
"""
887892
pieces = ['ZREVRANGE', name, start, num]
888893
if withscores:

0 commit comments

Comments
 (0)