PyGObject overrides a number of methods that return (success:bool, out1, out2, ...) with strip_boolean_result (defined in gi/overrides/__init__.py), making them instead return (out1, out2, ...) on success and None on failure.
pgi-docgen doesn't seem to recognise this (or at least not all of the instances where this occurs). For example, the Gtk.Widget.translate_coordinates documentation indicates that it returns (bool, int, int), which looks like it should be correct, except PyGObject overrides the method to return either (int, int) or None instead.
PyGObject overrides a number of methods that return
(success:bool, out1, out2, ...)
withstrip_boolean_result
(defined ingi/overrides/__init__.py
), making them instead return(out1, out2, ...)
on success andNone
on failure.pgi-docgen doesn't seem to recognise this (or at least not all of the instances where this occurs). For example, the
Gtk.Widget.translate_coordinates
documentation indicates that it returns(bool, int, int)
, which looks like it should be correct, except PyGObject overrides the method to return either(int, int)
orNone
instead.