From d116ebefc779f649da220a97e55af64f1ba2b1b9 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 29 Mar 2022 03:25:06 -0400 Subject: [PATCH] Async function -> return awaitable --- matrix_appservice_kakaotalk/puppet.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/matrix_appservice_kakaotalk/puppet.py b/matrix_appservice_kakaotalk/puppet.py index f26ebbc..deba6c5 100644 --- a/matrix_appservice_kakaotalk/puppet.py +++ b/matrix_appservice_kakaotalk/puppet.py @@ -148,26 +148,26 @@ class Puppet(DBPuppet, BasePuppet): # region User info updating - async def update_info_from_participant( + def update_info_from_participant( self, source: u.User, info: UserInfoUnion, update_avatar: bool = True, - ) -> Puppet: - await self._update_info( + ) -> Awaitable[Puppet]: + return self._update_info( source, info.nickname, info.profileURL, update_avatar ) - async def update_info_from_friend( + def update_info_from_friend( self, source: u.User, info: FriendStruct, update_avatar: bool = True, - ) -> Puppet: - await self._update_info( + ) -> Awaitable[Puppet]: + return self._update_info( source, info.nickName, info.profileImageUrl,