pgi-docgen icon indicating copy to clipboard operation
pgi-docgen copied to clipboard

Parameters missing from function call

Open nmartensen opened this issue 3 years ago • 0 comments

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?

nmartensen avatar Oct 11 '21 18:10 nmartensen