Leaklens

sphinx-doc__sphinx-8548

autodoc inherited-members won't work for inherited attributes (data members).

Verdict: the issue points to the file or function that was changed (Tier B).

Inside autodoc, the comment based docstring is strongly coupled with its class. So autodoc considers the docstring for `Base.ham` is not related with `Inherited.ham`. As a result, `Inherited.ham` is detected undocumented variable.

The two checks disagreed (stated fix vs. points to it); the lower reading shown: “Inside autodoc, the comment based docstring is strongly coupled with its class. So autodoc considers the docstring for `Base.ham` is not related with…”

All SWE-bench Verified tasks · more sphinx-doc/sphinx tasks · How the check works