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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-10-29 20:26:14 -04:00 committed by Tim Abbott
parent 77c15547e6
commit ab864be904
1 changed files with 1 additions and 1 deletions

View File

@ -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(