mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
Update pyright version
This commit is contained in:
@ -902,7 +902,7 @@ def hybrid_command(
|
||||
def decorator(func: CommandCallback[CogT, ContextT, P, T]) -> HybridCommand[CogT, P, T]:
|
||||
if isinstance(func, Command):
|
||||
raise TypeError('Callback is already a command.')
|
||||
return HybridCommand(func, name=name, with_app_command=with_app_command, **attrs) # type: ignore # ???
|
||||
return HybridCommand(func, name=name, with_app_command=with_app_command, **attrs)
|
||||
|
||||
return decorator
|
||||
|
||||
|
Reference in New Issue
Block a user