solve review comments

This commit is contained in:
adbenitez
2022-12-09 12:40:26 -05:00
parent c49743d38c
commit 0a4c8a40ba

View File

@@ -12,9 +12,7 @@ if TYPE_CHECKING:
class Account: class Account:
"""Each account is tied to a sqlite database file which is fully managed """Delta Chat account."""
by the underlying deltachat core.
"""
def __init__(self, manager: "DeltaChat", account_id: int) -> None: def __init__(self, manager: "DeltaChat", account_id: int) -> None:
self.manager = manager self.manager = manager
@@ -88,7 +86,7 @@ class Account:
return await self.get_config("selfavatar") return await self.get_config("selfavatar")
async def configure(self) -> None: async def configure(self) -> None:
"""Start configuration process.""" """Configure an account."""
await self._rpc.configure(self.id) await self._rpc.configure(self.id)
async def create_contact( async def create_contact(
@@ -102,6 +100,7 @@ class Account:
name is updated if specified. name is updated if specified.
:param obj: email-address or contact id. :param obj: email-address or contact id.
:param name: (optional) display name for this contact.
""" """
if isinstance(obj, int): if isinstance(obj, int):
obj = Contact(self, obj) obj = Contact(self, obj)