From 3f9e4bd54b8ab39736e477859b8fd7e1a4939e16 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 1 Feb 2024 16:23:41 -0800 Subject: [PATCH] =?UTF-8?q?ruff:=20Fix=20SIM910=20Use=20`d.get(=E2=80=A6)`?= =?UTF-8?q?=20instead=20of=20`d.get(=E2=80=A6,=20None)`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg (cherry picked from commit f165ba0fb372368534b0c1289f8b9873de61784e) --- zerver/tornado/event_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/tornado/event_queue.py b/zerver/tornado/event_queue.py index 48340233d6..2e940ba81e 100644 --- a/zerver/tornado/event_queue.py +++ b/zerver/tornado/event_queue.py @@ -343,7 +343,7 @@ class EventQueue: def from_dict(cls, d: Dict[str, Any]) -> "EventQueue": ret = cls(d["id"]) ret.next_event_id = d["next_event_id"] - ret.newest_pruned_id = d.get("newest_pruned_id", None) + ret.newest_pruned_id = d.get("newest_pruned_id") ret.queue = deque(d["queue"]) ret.virtual_events = d.get("virtual_events", {}) return ret