From aeb7e3a9e11746145acd2aa89f817dccd598b2f1 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Wed, 30 Nov 2022 23:56:50 -0500 Subject: [PATCH] fix some linter warnings --- deltachat-rpc-client/src/deltachat_rpc_client/account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/account.py b/deltachat-rpc-client/src/deltachat_rpc_client/account.py index e81e3b97b..833f7ecc1 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/account.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/account.py @@ -11,7 +11,7 @@ class Account: self.account_id = account_id def __repr__(self): - return "".format(self.account_id) + return f"" async def wait_for_event(self): """Wait until the next event and return it.""" @@ -59,8 +59,8 @@ class Account: await self.rpc.create_contact(self.account_id, address, name), ) - async def secure_join(self, qr: str) -> Chat: - chat_id = await self.rpc.secure_join(self.account_id, qr) + async def secure_join(self, qrdata: str) -> Chat: + chat_id = await self.rpc.secure_join(self.account_id, qrdata) return Chat(self.rpc, self.account_id, chat_id) async def get_fresh_messages(self): @@ -74,6 +74,6 @@ class Account: return [Message(self.rpc, self.account_id, msg_id) for msg_id in fresh_msg_ids] async def get_fresh_messages_in_arrival_order(self): - """Return the list of fresh messages sorted in the order of their arrival, with ascending IDs.""" + """Return fresh messages list sorted in the order of their arrival, with ascending IDs.""" fresh_msg_ids = sorted(await self.rpc.get_fresh_msgs(self.account_id)) return [Message(self.rpc, self.account_id, msg_id) for msg_id in fresh_msg_ids]