diff --git a/CHANGES/1214.bugfix b/CHANGES/1214.bugfix new file mode 100644 index 000000000..bb970adca --- /dev/null +++ b/CHANGES/1214.bugfix @@ -0,0 +1 @@ +Fix typing on evalsha keys_and_args argument diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index ffa53e370..2316774f2 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -28,6 +28,7 @@ Dmitry Vasilishin Evgenii Morozov Federico Jaite Hugo +Ian Good Ihor Gorobets Ihor Liubymov Ilya Samartsev diff --git a/aioredis/client.py b/aioredis/client.py index 13fd7c87f..aa8fbd727 100644 --- a/aioredis/client.py +++ b/aioredis/client.py @@ -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