-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
bugThis is a bug with the library.This is a bug with the library.
Description
Summary
The function interaction_check and other related functions in Cog aren't typed as Coroutine[Any, Any, bool], preventing them from being async functions
Reproduction Steps
See example code
Minimal Reproducible Code
class Admin(commands.GroupCog):
# this errors
async def interaction_check(self, interaction: Interaction) -> bool:
return TrueExpected Results
No type error occurs
Actual Results
Type error occurs: Class member `Admin.interaction_check` overrides parent class `GroupCog` in an inconsistent manner
Intents
discord.Intents.default()
System Information
- Python v3.13.1-final
- discord.py v2.6.4-final
- aiohttp v3.13.1
- system info: Windows 11 10.0.26100
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugThis is a bug with the library.This is a bug with the library.