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 #70

Open
liblaf opened this issue Sep 2, 2024 · 0 comments
Open

[Bug] Not working with lazy-loader #70

liblaf opened this issue Sep 2, 2024 · 0 comments

Comments

@liblaf
Copy link

liblaf commented Sep 2, 2024

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.

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