refactor(bot): 🎨 Apply formatting.

This commit is contained in:
Nyeki.py
2024-10-19 22:26:36 -03:00
parent 98e1e50831
commit 5c2df6b782
+3 -2
View File
@@ -10,7 +10,8 @@ def deduplicate(i: Iterable[T], key: Callable[[T], U] = lambda i: i) -> list[T]:
Args: Args:
i (Iterable[T]): The iterable with items to deduplicate. i (Iterable[T]): The iterable with items to deduplicate.
key (Callable[[T], U], optional): The key by which to deduplicate. Defaults to `lambda i: i`. key (Callable[[T], U], optional): The key by which to deduplicate. Defaults to
`lambda i: i`.
Returns: Returns:
list[T]: A list with the deduplicated items. list[T]: A list with the deduplicated items.
@@ -23,5 +24,5 @@ def deduplicate(i: Iterable[T], key: Callable[[T], U] = lambda i: i) -> list[T]:
for item in i: for item in i:
if key(item) not in found_keys: if key(item) not in found_keys:
result.append(item) result.append(item)
return result return result