-
Notifications
You must be signed in to change notification settings - Fork 68
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
Python: adds ZRANK command #1065
Conversation
14b73c8
to
fb10cf1
Compare
None # Indicates that "non_existing_member" is not present in the sorted set "my_sorted_set". | ||
""" | ||
return cast( | ||
Optional[List[Union[int, float]]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not Optional[List[float]]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because a rank of a member is it's index, so its an integer.
@@ -1674,3 +1733,4 @@ async def invoke_script( | |||
["foo", "bar"] | |||
""" | |||
return await self._execute_script(script.get_hash(), keys, args) | |||
return await self._execute_script(script.get_hash(), keys, args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mistake?
fb10cf1
to
0d966bd
Compare
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.