Fix remaining --verifytypes related errors

This commit is contained in:
Rapptz
2022-04-30 19:43:53 -04:00
parent 5536ef1eea
commit 6ee56fe964
2 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ class HybridAppCommand(discord.app_commands.Command[CogT, P, T]):
del wrapped.callback.__signature__
self.wrapped: Command[CogT, Any, T] = wrapped
self.binding = wrapped.cog
self.binding: Optional[CogT] = wrapped.cog
def _copy_with(self, **kwargs) -> Self:
copy: Self = super()._copy_with(**kwargs) # type: ignore
@ -383,7 +383,7 @@ class HybridCommand(Command[CogT, P, T]):
self,
func: CommandCallback[CogT, ContextT, P, T],
/,
**kwargs,
**kwargs: Any,
) -> None:
super().__init__(func, **kwargs)
self.app_command: HybridAppCommand[CogT, Any, T] = HybridAppCommand(self)