You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys. Thanks for releasing and mantaining pdoc.
In my codebase, I have a class that inherits from an abstract class, and within this derived class, I have methods named "compute" that are decorated or modified by a wrapper. However, when generating the HTML documentation using pdoc, I noticed that the docstrings associated with these "compute" methods are missing in the generated documentation.
I have verified that the docstrings are present in the source code and are correctly formatted. However, they are not appearing in the generated HTML documentation. This issue seems to be specific to the "compute" methods within the derived class, as the docstrings for other methods are being displayed correctly.
Have the same problem: any decorated method of any class inherited from abstract object has missing docstrings in generated HTML documentation. Any plans to fix it?
I don't know if it solves it, but now that inspect.getmembers_static() is available, we should probably see to using that instead of the above custom logic. Can somebody try it?
Activity
misanthropicat commentedon Aug 17, 2023
Have the same problem: any decorated method of any class inherited from abstract object has missing docstrings in generated HTML documentation. Any plans to fix it?
thatdc-reply commentedon Feb 21, 2024
I am having the same issue: any method decorated with @ is omitted in the documentation
kernc commentedon Jun 24, 2024
The behavior is based on this logic:
pdoc/pdoc/__init__.py
Lines 1045 to 1059 in d1136ea
pdoc/pdoc/__init__.py
Lines 993 to 1018 in d1136ea
I don't know if it solves it, but now that
inspect.getmembers_static()is available, we should probably see to using that instead of the above custom logic. Can somebody try it?USSX-Hares commentedon Jul 21, 2025
See also: #463