Async function -> return awaitable
This commit is contained in:
parent
d7b0b9013f
commit
d116ebefc7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user