Skip to content

Commit c49c485

Browse files
typing: Gtk4: Fix wrong Gtk.Widget.get_ancestor signature (#217)
1 parent 66f2686 commit c49c485

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gi-stubs/repository/_Gtk4.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33457,7 +33457,9 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget):
3345733457
def get_allocated_width(self) -> int: ...
3345833458
def get_allocation(self) -> Gdk.Rectangle: ...
3345933459
# override
33460-
def get_ancestor(self, widget_type: WidgetT) -> typing.Optional[WidgetT]: ...
33460+
def get_ancestor(
33461+
self, widget_type: typing.Type[WidgetT]
33462+
) -> typing.Optional[WidgetT]: ...
3346133463
def get_baseline(self) -> int: ...
3346233464
def get_can_focus(self) -> bool: ...
3346333465
def get_can_target(self) -> bool: ...

0 commit comments

Comments
 (0)