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.
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
.