From 65e11ddd0384b3800ffd5c50039bb3e12fb54753 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 12 Aug 2026 05:07:01 +0900 Subject: [PATCH] chore: clear typehinting errors --- dzgui/views/dialogs/early_alert.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dzgui/views/dialogs/early_alert.py b/dzgui/views/dialogs/early_alert.py index 6e0fa73..960f53a 100644 --- a/dzgui/views/dialogs/early_alert.py +++ b/dzgui/views/dialogs/early_alert.py @@ -9,6 +9,7 @@ import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk # noqa E402 + class AbortDialog(Gtk.MessageDialog): def __init__(self, string: str, buttons: Gtk.ButtonsType) -> None: super().__init__( @@ -23,7 +24,7 @@ class AbortDialog(Gtk.MessageDialog): aa = self.get_action_area() aa.set_margin_bottom(20) - aa.set_layout(Gtk.ButtonBoxStyle.CENTER) + aa.set_layout(Gtk.ButtonBoxStyle.CENTER) # type: ignore self.outer = self.get_content_area() self.outer.set_margin_start(30) @@ -51,11 +52,12 @@ class AbortDialog(Gtk.MessageDialog): print("response was cancel") return + class EarlyAlertDialog(AbortDialog): - def __init__(self, string: str, buttons: Gtk.ButtonsType) -> None: + def __init__(self, string: str) -> None: super().__init__(string=string, buttons=Gtk.ButtonsType.OK) + class EarlyIgnoreDialog(AbortDialog): def __init__(self, string: str) -> None: super().__init__(string=string, buttons=Gtk.ButtonsType.OK_CANCEL) -