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.