From 93278c1188cb1d45296b3e6dbc3f5947ecca3167 Mon Sep 17 00:00:00 2001 From: Ian Good Date: Sat, 20 Nov 2021 22:53:42 -0500 Subject: [PATCH] Fix typing on evalsha keys_and_args argument fix #1214 --- CHANGES/1214.bugfix | 1 + CONTRIBUTORS.txt | 1 + aioredis/client.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1214.bugfix 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