From 5322db03696c5b73be00ca03e8958227b256f29d Mon Sep 17 00:00:00 2001 From: Numerlor Date: Tue, 21 Jun 2022 15:56:51 +0200 Subject: Fix typehint --- botcore/utils/cooldown.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'botcore') 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 -- cgit v1.2.3