diff --git a/qt/aqt/models.py b/qt/aqt/models.py index 00465738f..538442e25 100644 --- a/qt/aqt/models.py +++ b/qt/aqt/models.py @@ -57,10 +57,12 @@ class Models(QDialog): ] if self.fromMain: - default_buttons.extend([ - (_("Fields..."), self.onFields), - (_("Cards..."), self.onCards), - ]) + default_buttons.extend( + [ + (_("Fields..."), self.onFields), + (_("Cards..."), self.onCards), + ] + ) default_buttons.append((_("Options..."), self.onAdvanced)) diff --git a/qt/tools/genhooks_gui.py b/qt/tools/genhooks_gui.py index 81b69a7e2..1d7b3336b 100644 --- a/qt/tools/genhooks_gui.py +++ b/qt/tools/genhooks_gui.py @@ -685,7 +685,10 @@ hooks = [ ), # Model ################### - Hook(name="models_advanced_will_show", args=["advanced: QDialog"],), + Hook( + name="models_advanced_will_show", + args=["advanced: QDialog"], + ), Hook( name="models_did_init_buttons", args=[