You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to call a Gtk.WidgetClass class method on something like Gtk.TextView raises a type error, because the generated typestubs make something like Gtk.WidgetClass.add_shortcut a method of Gtk.TextView, which is semi-correct. It's both a method on Gtk.Widget but also a class method of Gtk.WidgetClass which type[Gtk.TextView] should implement.
I haven't 100% checked if this a general incompatibility with Gtk.WidgetClass.
The text was updated successfully, but these errors were encountered:
theCapypara
changed the title
Methods of Gtk.WidgetClass incorrectly get generated as methods on the implementing types
Methods of Gtk.WidgetClass that also exist on Gtk.Widget can not be used as class methods.
Apr 9, 2024
Trying to call a
Gtk.WidgetClass
class method on something likeGtk.TextView
raises a type error, because the generated typestubs make something likeGtk.WidgetClass.add_shortcut
a method ofGtk.TextView
, which is semi-correct. It's both a method onGtk.Widget
but also a class method ofGtk.WidgetClass
whichtype[Gtk.TextView]
should implement.I haven't 100% checked if this a general incompatibility with
Gtk.WidgetClass
.The text was updated successfully, but these errors were encountered: