Skip to content

Commit 53b1106

Browse files
Update client.py
Change the function variable in scriptrun function from AnyStr to str
1 parent 24537c8 commit 53b1106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisai/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def scriptdel(self, key: AnyStr) -> str:
626626
def scriptrun(
627627
self,
628628
key: AnyStr,
629-
function: AnyStr,
629+
function: str,
630630
inputs: Union[AnyStr, Sequence[AnyStr]],
631631
outputs: Union[AnyStr, Sequence[AnyStr]],
632632
) -> str:
@@ -637,7 +637,7 @@ def scriptrun(
637637
----------
638638
key : AnyStr
639639
Script key
640-
function : AnyStr
640+
function : str
641641
Name of the function in the ``script``
642642
inputs : Union[AnyStr, List[AnyStr]]
643643
Tensor(s) which is already saved in the RedisAI using a tensorset call. These

0 commit comments

Comments
 (0)