From 82fdce32f2c60e7abd496e06a55779f842ba6a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yngve=20H=C3=B8iseth?= Date: Wed, 22 Jan 2020 23:33:37 +0100 Subject: [PATCH] Type hint RemoteServer._run --- pylib/anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/sync.py b/pylib/anki/sync.py index c962b5e42..a3329128d 100644 --- a/pylib/anki/sync.py +++ b/pylib/anki/sync.py @@ -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") )