Skip to content

Commit f1049d0

Browse files
committed
Typing for Welcome demo
1 parent fcc9d5b commit f1049d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Welcome/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import cast
2+
13
import gi
24

35
gi.require_version("Gtk", "4.0")
@@ -19,7 +21,7 @@ def dialog_response(dialog, response):
1921
dialog.close()
2022

2123

22-
subtitle_box: Gtk.Box = workbench.builder.get_object("subtitle")
24+
subtitle_box = cast(Gtk.Box, workbench.builder.get_object("subtitle"))
2325

2426
button = Gtk.Button(label="Press me", margin_top=6, css_classes=["suggested-action"])
2527
button.connect("clicked", greet)

0 commit comments

Comments
 (0)