sphinx-autoapi icon indicating copy to clipboard operation
sphinx-autoapi copied to clipboard

[Bug] Not working with `lazy-loader`

Open liblaf opened this issue 5 months ago • 0 comments

I am using lazy-loader for lazy importing. However, I found that sphinx-autoapi cannot generate docs for lazily imported functions, classes, etc.

Here is a simple demo where docs for normal functions is generated correctly while docs for lazily imported functions is missing.

I guess this is because sphinx-autoapi extracts the contents by parsing the syntax tree directly, rather than evaluating the python script.

liblaf avatar Aug 31 '24 14:08 liblaf