OK, #python question: How do I generate docs for an embedded python project that uses a #SWIG generated library? #pydoc #pdoc and the like rightly complain about non-existent modules, but all the information I want is contained in docstrings and type annotations, so it *should* be possible to generate docs right?

Is there a tool for this?

OK, I've worked around it by writing a wrapper script around pdoc that replaced the modules with "MagicMock" from "unittest.mock". I'm not happy with it but it works