From ea60bc3ff86e3e90a87c1db5af99feaf15d5759c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 25 Jul 2024 15:11:41 -0700 Subject: [PATCH] ruff: Fix PLR1714 Consider merging multiple comparisons. Signed-off-by: Anders Kaseorg --- zerver/webhooks/opbeat/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/webhooks/opbeat/view.py b/zerver/webhooks/opbeat/view.py index e406ef33d1..0bf5f9a064 100644 --- a/zerver/webhooks/opbeat/view.py +++ b/zerver/webhooks/opbeat/view.py @@ -79,7 +79,7 @@ def format_object( else: key = key_list[0] key_raw = key.lstrip("!").lstrip("#").lstrip('"') - if key_raw != "html_url" and key_raw != "subject" and ":" not in key_raw: + if key_raw not in {"html_url", "subject"} and ":" not in key_raw: value = get_value(obj, key_raw) if key.startswith("!"): message += f"\n>{value}"