Skip to content

Commit 8deda22

Browse files
committed
about dialog: add types
1 parent ef748f4 commit 8deda22

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

safeeyes/ui/about_dialog.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ class AboutDialog(Gtk.ApplicationWindow):
4141

4242
__gtype_name__ = "AboutDialog"
4343

44-
lbl_decription = Gtk.Template.Child()
45-
lbl_license = Gtk.Template.Child()
46-
lbl_app_name = Gtk.Template.Child()
44+
lbl_decription: Gtk.Label = Gtk.Template.Child()
45+
lbl_license: Gtk.Label = Gtk.Template.Child()
46+
lbl_app_name: Gtk.Label = Gtk.Template.Child()
4747

48-
def __init__(self, application, version):
48+
def __init__(self, application: Gtk.Application, version: str):
4949
super().__init__(application=application)
5050

5151
self.lbl_decription.set_label(
@@ -59,16 +59,16 @@ def __init__(self, application, version):
5959
# Set the version at the runtime
6060
self.lbl_app_name.set_label("Safe Eyes " + version)
6161

62-
def show(self):
62+
def show(self) -> None:
6363
"""Show the About dialog."""
6464
self.present()
6565

6666
@Gtk.Template.Callback()
67-
def on_window_delete(self, *args):
67+
def on_window_delete(self, *args) -> None:
6868
"""Window close event handler."""
6969
self.destroy()
7070

7171
@Gtk.Template.Callback()
72-
def on_close_clicked(self, *args):
72+
def on_close_clicked(self, *args) -> None:
7373
"""Close button click event handler."""
7474
self.destroy()

0 commit comments

Comments
 (0)