Skip to content

[Bug] Not working with lazy-loader #70

@liblaf

Description

@liblaf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions