Fix type annotations to adhere to latest pyright release

This commit is contained in:
Josh
2022-06-13 05:30:45 +10:00
committed by GitHub
parent 334ef1d7fa
commit c9f777c873
14 changed files with 50 additions and 47 deletions

View File

@ -460,8 +460,7 @@ class BotBase(GroupMixin[None]):
if len(data) == 0:
return True
# type-checker doesn't distinguish between functions and methods
return await discord.utils.async_all(f(ctx) for f in data) # type: ignore
return await discord.utils.async_all(f(ctx) for f in data)
async def is_owner(self, user: User, /) -> bool:
"""|coro|