mirror of https://github.com/zulip/zulip.git
ruff: Fix SIM910 Use `d.get(…)` instead of `d.get(…, None)`.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit f165ba0fb3
)
This commit is contained in:
parent
1fa8862e48
commit
3f9e4bd54b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue