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

Generating Gtk3 stubs, leads to invalid python #169

Open
lovetox opened this issue Feb 11, 2024 · 1 comment
Open

Generating Gtk3 stubs, leads to invalid python #169

lovetox opened this issue Feb 11, 2024 · 1 comment

Comments

@lovetox
Copy link
Collaborator

lovetox commented Feb 11, 2024

I see this line in the code

xoptions=<flags GTK_EXPAND | GTK_FILL of type Gtk.AttachOptions>

which is not valid python

@matperc
Copy link
Collaborator

matperc commented Feb 17, 2024

The fail is here generate.py:491

        signature = str(inspect.signature(function))

This the output from python

>>> str(inspect.signature(Gtk.Table.attach))
'(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions=<flags GTK_EXPAND | GTK_FILL of type Gtk.AttachOptions>, yoptions=<flags GTK_EXPAND | GTK_FILL of type Gtk.AttachOptions>, xpadding=0, ypadding=0)'

I think an override (like it's done right now) it's fine

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

2 participants