Closed mara004 closed 2 years ago
After analysing the situation more closely, I don't think it would make much sense to create documentation for a ctypesgen module. All that could be achieved would be the plain method and attribute names, which is not very useful.
Describe the bug
ctypesgen
is a tool to automatically create Python bindings to C libraries via ctypes, which I am using forpypdfium2
. It creates a long file (example: _pypdfium.py.txt) that contains lots of code snippets like this:I noticed that sphinx-autodoc only recognises members of the first case, while all the others are missing.
This is how I am autodoc'ing the file in question:
With corresponding configuration in
conf.py
:How to Reproduce
Expected behavior
sphinx-autodoc should include all members, also those that are wrapped with
try/except
or_lib.has(...)
.Your project
https://github.com/pypdfium2-team/pypdfium2
Screenshots
No response
OS
Linux Ubuntu 20.04
Python version
3.8.10
Sphinx version
4.4.0
Sphinx extensions
sphinx.ext.autodoc
Extra tools
Chromium M98
Additional context
No response