Use dict literal instead of call to dict() in toasts.py

This commit is contained in:
Dpeta 2023-05-03 19:29:09 +02:00
parent 06a71899dd
commit b644055dc0
No known key found for this signature in database
GPG key ID: 51227517CEA0030C

View file

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