Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
python: Rewrite list() as [].
Anders Kaseorg02725d32dd49
diff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.pyindex 4efa46e1fbc..6bb3d9a74a2 100644--- a/zerver/lib/import_realm.py+++ b/zerver/lib/import_realm.py@@ -1139,7 +1139,7 @@ def get_incoming_message_ids(import_dir: Path,'''if sort_by_date:- tups: List[Tuple[int, int]] = list()+ tups: List[Tuple[int, int]] = []else:message_ids: List[int] = []diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.pyindex 8b661d4f291..af20f7e5e58 100644--- a/zerver/lib/markdown/__init__.py+++ b/zerver/lib/markdown/__init__.py@@ -2124,7 +2124,7 @@ def privacy_clean_markdown(content: str) -> str:def get_possible_mentions_info(realm_id: int, mention_texts: Set[str]) -> List[FullNameInfo]:if not mention_texts:- return list()+ return []# Remove the trailing part of the `name|id` mention syntax,# thus storing only full names in full_names.diff --git a/zerver/lib/message.py b/zerver/lib/message.pyindex f09437d93f1..6fd28955e9c 100644--- a/zerver/lib/message.py+++ b/zerver/lib/message.py@@ -1179,7 +1179,7 @@ def get_recent_private_conversations(user_profile: UserProfile) -> Dict[int, Dicfor recipient_id, max_message_id in rows:recipient_map[recipient_id] = dict(max_message_id=max_message_id,- user_ids=list(),+ user_ids=[],)# Now we need to map all the recipient_id objects to lists of user IDs