diff options
Diffstat (limited to 'botcore/utils/cooldown.py')
-rw-r--r-- | botcore/utils/cooldown.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index b5641063..34e88901 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -20,7 +20,7 @@ from botcore.utils.function import command_wraps __all__ = ["CommandOnCooldown", "block_duplicate_invocations", "P", "R"] -_ArgsTuple = tuple[object] +_ArgsTuple = tuple[object, ...] if typing.TYPE_CHECKING: from botcore import BotBase @@ -42,8 +42,8 @@ class CommandOnCooldown(CommandError, typing.Generic[P, R]): self, message: str | None, function: Callable[P, Awaitable[R]], - *args: object, - **kwargs: object, + *args: P.args, + **kwargs: P.kwargs, ): super().__init__(message, function, args, kwargs) self._function = function |