Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Fix SIM111 Use `return all(…)` instead of `for` loop.
Anders Kaseorgc6b60044322c
diff --git a/tools/setup/emoji/emoji_setup_utils.py b/tools/setup/emoji/emoji_setup_utils.pyindex 8dc4ee3991d..d8b5773bdc5 100644--- a/tools/setup/emoji/emoji_setup_utils.py+++ b/tools/setup/emoji/emoji_setup_utils.py@@ -103,10 +103,7 @@ def generate_emoji_catalog(# Use only those names for which images are present in all# the emoji sets so that we can switch emoji sets seamlessly.def emoji_is_universal(emoji_dict: Dict[str, Any]) -> bool:- for emoji_set in EMOJISETS:- if not emoji_dict["has_img_" + emoji_set]:- return False- return True+ return all(emoji_dict["has_img_" + emoji_set] for emoji_set in EMOJISETS)def generate_codepoint_to_name_map(emoji_name_maps: Dict[str, Dict[str, Any]]) -> Dict[str, str]: