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.WidgetClassclass method on something likeGtk.TextViewraises a type error, because the generated typestubs make something likeGtk.WidgetClass.add_shortcuta method ofGtk.TextView, which is semi-correct. It's both a method onGtk.Widgetbut also a class method ofGtk.WidgetClasswhichtype[Gtk.TextView]should implement.I haven't 100% checked if this a general incompatibility with
Gtk.WidgetClass.