rpc: Fix type hints for make_rpc_call_request()

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
This commit is contained in:
Ole André Vadla Ravnås
2024-05-31 15:39:50 +02:00
parent 243cce22e6
commit 0b854499cd
+1 -1
View File
@@ -212,7 +212,7 @@ class ScriptExportsAsync:
return self._script.list_exports_sync()
def make_rpc_call_request(js_name: str, args: List[Any]) -> List[Any]:
def make_rpc_call_request(js_name: str, args: Sequence[Any]) -> Tuple[List[Any], Optional[bytes]]:
if args and isinstance(args[-1], bytes):
raw_args = args[:-1]
data = args[-1]