pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
128 stars 36 forks source link

GLib.timeout_add #164

Open buhtz opened 6 years ago

buhtz commented 6 years ago

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()?

fosero commented 6 years ago

This is because it is overriden, but gets the description from the regular docs.

yursan9 commented 5 years ago

This also happens to GLib.idle_add(). The correct signature is GLib.idle_add(function, *user_data, **kwargs)