pgi-docgen
pgi-docgen copied to clipboard
GLib.timeout_add
Please see https://lazka.github.io/pgi-docs/#GLib-2.0/functions.html#GLib.timeout_add where the signature is
GLib.timeout_add(priority, interval, function, *data)
But this is wrong. help()
tells me
timeout_add(interval, function, *user_data, **kwargs)
How is the API Ref generated? Isn't it generated from the sources? So why is there a difference between the API Ref and help()
?
This is because it is overriden, but gets the description from the regular docs.
This also happens to GLib.idle_add(). The correct signature is GLib.idle_add(function, *user_data, **kwargs)