From 94aa293f1a98013518ca69b32b85dcbabfd125d2 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sun, 9 Jan 2022 15:16:55 -0500 Subject: [PATCH] Add static typing for utils.MessageDialog --- src/diffuse/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffuse/utils.py b/src/diffuse/utils.py index 27e9a99..92a69ea 100644 --- a/src/diffuse/utils.py +++ b/src/diffuse/utils.py @@ -38,7 +38,7 @@ from gi.repository import Gtk # type: ignore # noqa: E402 # convenience class for displaying a message dialogue class MessageDialog(Gtk.MessageDialog): - def __init__(self, parent, message_type, s): + def __init__(self, parent: Gtk.Widget, message_type: Gtk.MessageType, s: str) -> None: if message_type == Gtk.MessageType.ERROR: buttons = Gtk.ButtonsType.OK else: