Skip to content

Commit

Permalink
PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Apr 29, 2024
1 parent 893159e commit eb86013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/python/glide/async_commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ async def zmscore(
self,
key: str,
members: List[str],
) -> List[float]:
) -> List[Optional[float]]:
"""
Returns the scores associated with the specified `members` in the sorted set stored at `key`.
Expand All @@ -2341,15 +2341,15 @@ async def zmscore(
members (List[str]): A list of members in the sorted set.
Returns:
List[float]: A list of scores of the `members`.
List[Optional[float]]: A list of scores of the `members`.
If a member does not exist, the corresponding value in the list will be None.
Examples:
>>> await client.zmscore("my_sorted_set", ["one", "non_existent_member", "three"])
[1.0, None, 3.0]
"""
return cast(
List[float],
List[Optional[float]],
await self._execute_command(RequestType.ZMScore, [key] + members),
)

Expand Down
2 changes: 1 addition & 1 deletion python/python/glide/async_commands/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ def zmscore(self: TTransaction, key: str, members: List[str]) -> TTransaction:
members (List[str]): A list of members in the sorted set.
Command response:
List[float]: A list of scores of the `members`.
List[Optional[float]]: A list of scores of the `members`.
If a member does not exist, the corresponding value in the list will be None.
"""
return self.append_command(RequestType.ZMScore, [key] + members)
Expand Down

0 comments on commit eb86013

Please sign in to comment.