Skip to content

Commit

Permalink
#1434 Fixed typo and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
2014BDuck committed Dec 21, 2020
1 parent 49af347 commit 77eadf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3071,14 +3071,15 @@ def zmscore(self, key, members):
``members`` should be a list of the member name.
Return type is a list of score.
If no member can be matched, an empty list will be returned.
If the member does not exist, a None will be returned
in corresponding position.
"""
if not isinstance(members, list) or len(members) < 1:
raise DataError('ZMSCORE members must be a non-empty list')
pieces = [key] + members
return self.execute_command('ZMSCORE', *pieces)


def _zaggregate(self, command, dest, keys, aggregate=None):
pieces = [command, dest, len(keys)]
if isinstance(keys, dict):
Expand Down

0 comments on commit 77eadf3

Please sign in to comment.