From cb43c2491abf5b7d61f7676da00a8d9fc434cc63 Mon Sep 17 00:00:00 2001 From: Vladimir Kamarzin Date: Wed, 4 Dec 2019 00:33:57 +0500 Subject: [PATCH] Add separate loop kwarg --- grapheneapi/aio/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grapheneapi/aio/rpc.py b/grapheneapi/aio/rpc.py index 0bb8bacf..5e5e5b7e 100644 --- a/grapheneapi/aio/rpc.py +++ b/grapheneapi/aio/rpc.py @@ -8,11 +8,11 @@ class Rpc(SyncRpc): - def __init__(self, url, *args, **kwargs): + def __init__(self, url, *args, loop=None, **kwargs): self.api_id = {} self._request_id = 0 self.url = url - self.loop = kwargs.get("loop") + self.loop = loop def __getattr__(self, name): """ Map all methods to RPC calls and pass through the arguments