mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
python: Elide unnecessary list wrappers.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
eff0a73925
commit
2665a3ce2b
@@ -42,7 +42,7 @@ def get_dev_users(realm: Optional[Realm] = None, extra_users_count: int = 10) ->
|
||||
extra_users = users_query.filter(email__startswith="extrauser").order_by("email")
|
||||
# Limit the number of extra users we offer by default
|
||||
extra_users = extra_users[0:extra_users_count]
|
||||
users = list(shakespearian_users) + list(extra_users)
|
||||
users = [*shakespearian_users, *extra_users]
|
||||
return users
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user