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

Imports from __init__.py confusing for intersphinx #265

Closed
cblegare opened this issue Mar 24, 2017 · 2 comments
Closed

Imports from __init__.py confusing for intersphinx #265

cblegare opened this issue Mar 24, 2017 · 2 comments

Comments

@cblegare
Copy link

Sphinx (using intersphinx) can't find some classes from your objects.inv, resulting in

WARNING: py:class reference target not found: flask_restplus.api.Api

because it is referenced as flask_restplus.Api and not flask_restplus.api.Api in the objects.inv

This can be worked around by assigning the __module__ property of classes imported in any __init__.py. See also http://stackoverflow.com/a/24787344

@cblegare
Copy link
Author

cblegare commented Nov 8, 2018

See sphinx-doc/sphinx#5603

@cblegare
Copy link
Author

Closing in favor of issue in sphinx (mentioned above)

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