ruff: Fix SIM910 Use `d.get(…)` instead of `d.get(…, None)`.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-02-01 16:23:41 -08:00 committed by Tim Abbott
parent 712917b2c9
commit f165ba0fb3
1 changed files with 1 additions and 1 deletions

View File

@ -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