Skip to content

Commit

Permalink
add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Jan 19, 2022
1 parent 4a9e89c commit 1023665
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3894,10 +3894,12 @@ def eval(self, script, numkeys, *keys_and_args):
"""
return self.execute_command("EVAL", script, numkeys, *keys_and_args)

def _evalsha(self, command, sha, numkeys, *keys_and_args):
def _evalsha(
self, command: str, sha: str, numkeys: int, *keys_and_args: list
) -> str:
return self.execute_command(command, sha, numkeys, *keys_and_args)

def evalsha(self, sha, numkeys, *keys_and_args):
def evalsha(self, sha: str, numkeys: int, *keys_and_args: list) -> str:
"""
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 1023665

Please sign in to comment.