Sphinx autodoc from stub file alone for a pure python class? (original) (raw)

Monarch (Monarch)

February 17, 2025, 4:04pm 1

I contributed type stubs to a pure python project and they gracefully accepted it on the condition that it stays away from the code itself (hence the stub file). Next, I would like to improve the documentation but I cannot find any way for sphinx autodoc to pull type hints from a stub file. It seems like it can do it, but only for extension modules.