diff options
author | 2022-09-19 12:48:12 +0200 | |
---|---|---|
committer | 2022-09-19 12:48:12 +0200 | |
commit | 825b14565eec85a5ae1bd52ecc99162705178e42 (patch) | |
tree | 1bbf798b644765f8e72ba0ff9f3a95c5c7f9b457 /botcore | |
parent | use ctx.channel directly (diff) |
type return with tuple
while only iterable is strictly needed, any reader would
expect the function to return a tuple
Diffstat (limited to 'botcore')
-rw-r--r-- | botcore/utils/cooldown.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index 879a2894..8de7c243 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -167,7 +167,7 @@ class _CommandCooldownManager: self._cooldowns[key] = filtered_cooldowns -def _create_argument_tuple(*args: object, **kwargs: object) -> Iterable[object]: +def _create_argument_tuple(*args: object, **kwargs: object) -> tuple[object, ...]: return (*args, _KEYWORD_SEP_SENTINEL, *kwargs.items()) |