Skip to content

Commit 1023665

Browse files
committed
add type hints
1 parent 4a9e89c commit 1023665

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redis/commands/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,10 +3894,12 @@ def eval(self, script, numkeys, *keys_and_args):
38943894
"""
38953895
return self.execute_command("EVAL", script, numkeys, *keys_and_args)
38963896

3897-
def _evalsha(self, command, sha, numkeys, *keys_and_args):
3897+
def _evalsha(
3898+
self, command: str, sha: str, numkeys: int, *keys_and_args: list
3899+
) -> str:
38983900
return self.execute_command(command, sha, numkeys, *keys_and_args)
38993901

3900-
def evalsha(self, sha, numkeys, *keys_and_args):
3902+
def evalsha(self, sha: str, numkeys: int, *keys_and_args: list) -> str:
39013903
"""
39023904
Use the ``sha`` to execute a Lua script already registered via EVAL
39033905
or SCRIPT LOAD. Specify the ``numkeys`` the script will touch and the

0 commit comments

Comments
 (0)