mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
This commit is contained in:
@ -220,7 +220,7 @@ def _not_overridden(f: FuncT) -> FuncT:
|
||||
|
||||
class _HelpCommandImpl(Command):
|
||||
def __init__(self, inject: HelpCommand, *args: Any, **kwargs: Any) -> None:
|
||||
super().__init__(inject.command_callback, *args, **kwargs) # type: ignore
|
||||
super().__init__(inject.command_callback, *args, **kwargs)
|
||||
self._original: HelpCommand = inject
|
||||
self._injected: HelpCommand = inject
|
||||
self.params: Dict[str, Parameter] = get_signature_parameters(inject.command_callback, globals(), skip_parameters=1)
|
||||
@ -228,7 +228,7 @@ class _HelpCommandImpl(Command):
|
||||
async def prepare(self, ctx: Context[Any]) -> None:
|
||||
self._injected = injected = self._original.copy()
|
||||
injected.context = ctx
|
||||
self.callback = injected.command_callback # type: ignore
|
||||
self.callback = injected.command_callback
|
||||
self.params = get_signature_parameters(injected.command_callback, globals(), skip_parameters=1)
|
||||
|
||||
on_error = injected.on_help_command_error
|
||||
|
Reference in New Issue
Block a user