diff options
author | 2022-06-21 15:56:51 +0200 | |
---|---|---|
committer | 2022-06-21 17:59:14 +0200 | |
commit | 5322db03696c5b73be00ca03e8958227b256f29d (patch) | |
tree | ee4a676001c715dcd2e3a19b6598138c31c5374d | |
parent | Add comment for skipped arguments (diff) |
Fix typehint
-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 |