We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc9d5b commit f1049d0Copy full SHA for f1049d0
src/Welcome/main.py
@@ -1,3 +1,5 @@
1
+from typing import cast
2
+
3
import gi
4
5
gi.require_version("Gtk", "4.0")
@@ -19,7 +21,7 @@ def dialog_response(dialog, response):
19
21
dialog.close()
20
22
23
-subtitle_box: Gtk.Box = workbench.builder.get_object("subtitle")
24
+subtitle_box = cast(Gtk.Box, workbench.builder.get_object("subtitle"))
25
26
button = Gtk.Button(label="Press me", margin_top=6, css_classes=["suggested-action"])
27
button.connect("clicked", greet)
0 commit comments