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

feat: add warning for missing imported object #501

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

arwedus
Copy link

@arwedus arwedus commented Nov 6, 2024

Follow-up on #431

This warning is shown by sphinx build now when the "fullname" in the autoapi directive cannot be found in the imports, e.g. .. autoapiclass:: autoapi.mappers.python.objects.PythonPythonMapper give:

reading sources... [100%] reference/templates
WARNING: Failed to import class 'autoapi.mappers.python.objects.PythonPythonMapper' [autoapi.import]

Closes #419

@arwedus arwedus force-pushed the feature/add-import-warning branch from 3a7de96 to 71eba3c Compare November 6, 2024 18:46
@arwedus
Copy link
Author

arwedus commented Nov 24, 2024

@AWhetter : Could you please review this PR? I don't understand why the test is failing for Py3.12, maybe you have an idea

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

Successfully merging this pull request may close these issues.

Add warning message for unresolved python elements
1 participant