mirror of https://github.com/zulip/zulip.git
ruff: Fix C416 Unnecessary `set` comprehension (rewrite using `set()`).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
77c15547e6
commit
ab864be904
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue