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

Indirect imports not supported

Open cdleonard opened this issue 7 months ago • 0 comments

If you import something in multiple steps you get an error like "WARNING: Cannot resolve import of $BLAH in $BAR [autoapi.python_import_resolution]". More specifically I'm refering to a scenario like this:

mypack.mod1:

from pathlib import Path

mypack.mod2:

from .mod1 import Path

This is arguably a bad practice and some linters complain about it but it would be nice if it worked.

cdleonard avatar May 20 '25 12:05 cdleonard