Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Fix typing on evalsha keys_and_args argument #1215

Merged
merged 1 commit into from Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/1214.bugfix
@@ -0,0 +1 @@
Fix typing on evalsha keys_and_args argument
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -28,6 +28,7 @@ Dmitry Vasilishin <dmvass>
Evgenii Morozov <emorozov>
Federico Jaite <fedej>
Hugo <hugovk>
Ian Good
Ihor Gorobets
Ihor Liubymov
Ilya Samartsev
Expand Down
2 changes: 1 addition & 1 deletion aioredis/client.py
Expand Up @@ -3576,7 +3576,7 @@ def eval(
"""
return self.execute_command("EVAL", script, numkeys, *keys_and_args)

def evalsha(self, sha: str, numkeys: int, *keys_and_args: str) -> Awaitable:
def evalsha(self, sha: str, numkeys: int, *keys_and_args: EncodableT) -> Awaitable:
"""
Use the ``sha`` to execute a Lua script already registered via EVAL
or SCRIPT LOAD. Specify the ``numkeys`` the script will touch and the
Expand Down