From a77c46be20b2f65858b3848e0e1c4a468a818099 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Wed, 30 Nov 2022 23:42:08 -0500 Subject: [PATCH] fix bug in account.py: arguments declared as optional but not default value was given --- deltachat-rpc-client/src/deltachat_rpc_client/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/account.py b/deltachat-rpc-client/src/deltachat_rpc_client/account.py index 5e78c7a6e..e81e3b97b 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/account.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/account.py @@ -39,7 +39,7 @@ class Account: """Return True for configured accounts.""" return await self.rpc.is_configured(self.account_id) - async def set_config(self, key: str, value: Optional[str]): + async def set_config(self, key: str, value: Optional[str] = None): """Set the configuration value key pair.""" await self.rpc.set_config(self.account_id, key, value) @@ -51,7 +51,7 @@ class Account: """Configure an account.""" await self.rpc.configure(self.account_id) - async def create_contact(self, address: str, name: Optional[str]) -> Contact: + async def create_contact(self, address: str, name: Optional[str] = None) -> Contact: """Create a contact with the given address and, optionally, a name.""" return Contact( self.rpc,