Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods of Gtk.WidgetClass that also exist on Gtk.Widget can not be used as class methods. #184

Open
theCapypara opened this issue Apr 9, 2024 · 0 comments

Comments

@theCapypara
Copy link
Contributor

theCapypara commented Apr 9, 2024

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.

@theCapypara 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant