mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Fix type annotations to adhere to latest pyright release
This commit is contained in:
@ -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|
|
||||
|
Reference in New Issue
Block a user