Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Fix C416 Unnecessary `set` comprehension (rewrite using `set()`).

Anders Kaseorgab864be9044a
diff --git a/zerver/actions/message_edit.py b/zerver/actions/message_edit.py
index 3f0fa26ecbc..61b44aa3b1c 100644
--- a/zerver/actions/message_edit.py
+++ b/zerver/actions/message_edit.py
@@ -260,7 +260,7 @@ def get_mentions_for_message_updates(message_id: int) -> Set[int]:
)
.values_list("user_profile_id", flat=True)
)
- return {user_profile_id for user_profile_id in mentioned_user_ids}
+ return set(mentioned_user_ids)
def update_user_message_flags(