Type hint RemoteServer._run

This commit is contained in:
Yngve Høiseth 2020-01-22 23:33:37 +01:00
parent 95b497ccf0
commit 82fdce32f2

View File

@ -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")
)