ruff: Fix C414 Unnecessary list call within sorted().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-10-29 18:35:32 -04:00
committed by Tim Abbott
parent 69e94b5991
commit 77c15547e6
6 changed files with 10 additions and 10 deletions

View File

@@ -358,7 +358,7 @@ def get_team_body(helper: Helper) -> str:
new_visibility = payload["team"]["privacy"].tame(check_string)
return f"Team visibility changed to `{new_visibility}`"
missing_keys = "/".join(sorted(list(changes.keys())))
missing_keys = "/".join(sorted(changes.keys()))
helper.log_unsupported(f"team/edited (changes: {missing_keys})")
# Do our best to give useful info to the customer--at least