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

Commit

Permalink
Fix typing on evalsha keys_and_args argument (#1215)
Browse files Browse the repository at this point in the history
fixes #1214
  • Loading branch information
icgood committed Nov 22, 2021
1 parent 33b2dbd commit 0aa06df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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

0 comments on commit 0aa06df

Please sign in to comment.