Skip to content
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

Merged
merged 6 commits into from
Mar 19, 2024
Merged

Conversation

shohamazon
Copy link
Collaborator

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.

@shohamazon shohamazon requested a review from a team as a code owner March 4, 2024 15:15
@Yury-Fridlyand Yury-Fridlyand added the python Python wrapper label Mar 4, 2024
python/python/glide/async_commands/core.py Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/transaction.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/transaction.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/tests/test_transaction.py Show resolved Hide resolved
@shohamazon shohamazon force-pushed the python/zrank branch 3 times, most recently from 14b73c8 to fb10cf1 Compare March 14, 2024 14:16
None # Indicates that "non_existing_member" is not present in the sorted set "my_sorted_set".
"""
return cast(
Optional[List[Union[int, float]]],
Copy link
Collaborator

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]]?

Copy link
Collaborator Author

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A mistake?

@shohamazon shohamazon merged commit 3565a3a into valkey-io:main Mar 19, 2024
45 checks passed
@shohamazon shohamazon deleted the python/zrank branch March 19, 2024 13:21
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Python wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants