Fix type annotations to adhere to latest pyright release

This commit is contained in:
Josh authored and GitHub committed 2022-06-12 15:30:45 -04:00
1 parent 334ef1d7fa
commit c9f777c873
14 files changed
+50 -47

No files matched your search

+1 -2
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|