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

[Bug] Not working with `lazy-loader`

Open liblaf opened this issue 1 year ago • 0 comments

I am using lazy-loader for lazy importing. However, I found that sphinx-autdoc2 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-autodoc2 extracts the contents by parsing the syntax tree directly, rather than evaluating the python script.

liblaf avatar Sep 02 '24 01:09 liblaf