From 5c2df6b78244a00ba62a875c13c11b6b07afc0cd Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Sat, 19 Oct 2024 22:26:36 -0300 Subject: [PATCH] refactor(bot): :art: Apply formatting. --- payphone/core/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/payphone/core/utils.py b/payphone/core/utils.py index a46f6ed..d361918 100644 --- a/payphone/core/utils.py +++ b/payphone/core/utils.py @@ -10,7 +10,8 @@ def deduplicate(i: Iterable[T], key: Callable[[T], U] = lambda i: i) -> list[T]: Args: 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: 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: if key(item) not in found_keys: result.append(item) - + return result