Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Not working with lazy-loader #479

Open
liblaf opened this issue Aug 31, 2024 · 0 comments
Open

[Bug] Not working with lazy-loader #479

liblaf opened this issue Aug 31, 2024 · 0 comments

Comments

@liblaf
Copy link

liblaf commented Aug 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant