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

Parameters missing from function call #207

Open
nmartensen opened this issue Oct 11, 2021 · 0 comments
Open

Parameters missing from function call #207

nmartensen opened this issue Oct 11, 2021 · 0 comments

Comments

@nmartensen
Copy link

According to
https://lazka.github.io/pgi-docs/Vte-2.91/classes/Terminal.html#Vte.Terminal.spawn_async
and
https://lazka.github.io/pgi-docs/#Vte-2.91/classes/Pty.html#Vte.Pty.spawn_async
the order of arguments includes:
..., spawn_flags, child_setup, timeout, ...

However, the code does not work when trying to use that argument order,
the result is: TypeError: Argument 9 does not allow None as a value

It would be great if the code and its documentation would match.

An example illustrating that there must be in fact two arguments
between the spawn_flags and the timeout can be found here:
https://stackoverflow.com/questions/55105447/virtual-python-shell-with-vte-pty-spawn-async

According to advice received in
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996084#10
this is probably a bug in the documentation-generating tool. Is this pgi-docgen?

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