Skip to content

Commit 2c903cf

Browse files
committed
use more consistent styling
1 parent 825b145 commit 2c903cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

botcore/utils/cooldown.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def set_cooldown(self, channel: Hashable, call_arguments: Iterable[object]) -> N
113113
separated_arguments = _SeparatedArguments.from_full_arguments(call_arguments)
114114
cooldowns_list = self._cooldowns.setdefault(
115115
(channel, separated_arguments.hashable),
116-
[]
116+
[],
117117
)
118118

119119
for item in cooldowns_list:
@@ -172,7 +172,9 @@ def _create_argument_tuple(*args: object, **kwargs: object) -> tuple[object, ...
172172

173173

174174
def block_duplicate_invocations(
175-
*, cooldown_duration: float = 5, send_notice: bool = False
175+
*,
176+
cooldown_duration: float = 5,
177+
send_notice: bool = False,
176178
) -> Callable[[Callable[P, Awaitable[R]]], Callable[P, Awaitable[R]]]:
177179
"""
178180
Prevent duplicate invocations of a command with the same arguments in a channel for ``cooldown_duration`` seconds.

0 commit comments

Comments
 (0)