Skip to content

Commit 8f5d5ce

Browse files
committed
Python/Doc: Fix invoke_script examples
Signed-off-by: barshaul <[email protected]>
1 parent 210ba24 commit 8f5d5ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/python/glide/async_commands/cluster_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ async def invoke_script(
12531253
12541254
Examples:
12551255
>>> lua_script = Script("return { KEYS[1], ARGV[1] }")
1256-
>>> await invoke_script(lua_script, keys=["foo"], args=["bar"] );
1256+
>>> await client.invoke_script(lua_script, keys=["foo"], args=["bar"] );
12571257
[b"foo", b"bar"]
12581258
"""
12591259
return await self._execute_script(script.get_hash(), keys, args)
@@ -1284,7 +1284,7 @@ async def invoke_script_route(
12841284
12851285
Examples:
12861286
>>> lua_script = Script("return { ARGV[1] }")
1287-
>>> await invoke_script(lua_script, args=["bar"], route=AllPrimaries());
1287+
>>> await client.invoke_script(lua_script, args=["bar"], route=AllPrimaries());
12881288
[b"bar"]
12891289
"""
12901290
return await self._execute_script(

python/python/glide/async_commands/standalone_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ async def invoke_script(
927927
928928
Examples:
929929
>>> lua_script = Script("return { KEYS[1], ARGV[1] }")
930-
>>> await invoke_script(lua_script, keys=["foo"], args=["bar"] );
930+
>>> await client.invoke_script(lua_script, keys=["foo"], args=["bar"] );
931931
[b"foo", b"bar"]
932932
"""
933933
return await self._execute_script(script.get_hash(), keys, args)

0 commit comments

Comments
 (0)