Type hint RemoteServer._run
This commit is contained in:
parent
95b497ccf0
commit
82fdce32f2
@ -623,7 +623,7 @@ class RemoteServer(HttpSyncer):
|
||||
def abort(self, **kw) -> Any:
|
||||
return self._run("abort", kw)
|
||||
|
||||
def _run(self, cmd, data) -> Any:
|
||||
def _run(self, cmd: str, data: Any) -> Any:
|
||||
return json.loads(
|
||||
self.req(cmd, io.BytesIO(json.dumps(data).encode("utf8"))).decode("utf8")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user