From 2c903cfc72e80aaa1873cdc50f14353c52201976 Mon Sep 17 00:00:00 2001 From: Numerlor Date: Mon, 19 Sep 2022 12:49:48 +0200 Subject: use more consistent styling --- botcore/utils/cooldown.py | 6 ++++-- 1 file 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. -- cgit v1.2.3