Skip to content

Commit 825b145

Browse files
committed
type return with tuple
while only iterable is strictly needed, any reader would expect the function to return a tuple
1 parent e94b47f commit 825b145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcore/utils/cooldown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _delete_stale_items(self) -> None:
167167
self._cooldowns[key] = filtered_cooldowns
168168

169169

170-
def _create_argument_tuple(*args: object, **kwargs: object) -> Iterable[object]:
170+
def _create_argument_tuple(*args: object, **kwargs: object) -> tuple[object, ...]:
171171
return (*args, _KEYWORD_SEP_SENTINEL, *kwargs.items())
172172

173173

0 commit comments

Comments
 (0)