Skip to content

py:obj reference target not found with sphinx 9.x #671

@jschueller

Description

@jschueller

sphinx 9.x has rewritten significantly its autodoc extension,
is there anything left to do in numpydoc to leverage the new api ?

I noticed the change when upgrading sphinx as I had to switch autodoc_use_legacy_class_based=True to use the legacy class-based API:
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_use_legacy_class_based

else it gave me lots of warnings about references not found: [ref.obj] for stuff that should be filtered by :exclude-members: (nitpicky mode), eg:

/tmp/build/python/src/site-packages/persalys/persalys.py:docstring of persalys.persalys.Analysis:8: WARNING: py:obj reference target not found: thisown [ref.obj]

that I dont get otherwise without numpydoc

so is this a known task to handle the new default, or should I try to write a minimal reproducer ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions