From b644055dc01910929fabb6871d16be478111e186 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Wed, 3 May 2023 19:29:09 +0200 Subject: [PATCH] Use dict literal instead of call to dict() in toasts.py --- toast.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/toast.py b/toast.py index 66afb06..519b1d1 100644 --- a/toast.py +++ b/toast.py @@ -232,7 +232,13 @@ class ToastMachine: class PesterToast(QtWidgets.QWidget, DefaultToast): def __init__(self, machine, title, msg, icon, time=3000, parent=None): # FIXME: Not sure how this works exactly either xd, can't we init the parents seperately? - kwds = dict(parent=parent, machine=machine, title=title, msg=msg, icon=icon) + kwds = { + "parent": parent, + "machine": machine, + "title": title, + "msg": msg, + "icon": icon, + } super().__init__(**kwds) self.machine = machine