diff options
author | 2022-09-19 12:49:48 +0200 | |
---|---|---|
committer | 2022-09-19 12:49:48 +0200 | |
commit | 2c903cfc72e80aaa1873cdc50f14353c52201976 (patch) | |
tree | b7571290ce83bc939cacbc6619615462d3f8dcbf | |
parent | type return with tuple (diff) |
use more consistent styling
-rw-r--r-- | botcore/utils/cooldown.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index 8de7c243..2e722d20 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -113,7 +113,7 @@ class _CommandCooldownManager: separated_arguments = _SeparatedArguments.from_full_arguments(call_arguments) cooldowns_list = self._cooldowns.setdefault( (channel, separated_arguments.hashable), - [] + [], ) for item in cooldowns_list: @@ -172,7 +172,9 @@ def _create_argument_tuple(*args: object, **kwargs: object) -> tuple[object, ... def block_duplicate_invocations( - *, cooldown_duration: float = 5, send_notice: bool = False + *, + cooldown_duration: float = 5, + send_notice: bool = False, ) -> Callable[[Callable[P, Awaitable[R]]], Callable[P, Awaitable[R]]]: """ Prevent duplicate invocations of a command with the same arguments in a channel for ``cooldown_duration`` seconds. |