You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When documenting a class with multiple inheritance using sphinx.ext.autodoc, the :inherited-members: directive does not behave as expected. Specifically, if you exclude inherited members from one base class, Sphinx incorrectly excludes all members from base classes that appear after the excluded one in the inheritance hierarchy.
How to Reproduce
class MixinA:
def method_a(self):
"""Method from MixinA."""
class MixinB:
def method_b(self):
"""Method from MixinB."""
class MixinC:
def method_c(self):
"""Method from MixinC."""
class MyClass(MixinA, MixinB, MixinC):
def my_method(self):
"""Method from MyClass."""
Describe the bug
Description:
When documenting a class with multiple inheritance using sphinx.ext.autodoc, the :inherited-members: directive does not behave as expected. Specifically, if you exclude inherited members from one base class, Sphinx incorrectly excludes all members from base classes that appear after the excluded one in the inheritance hierarchy.
How to Reproduce
Sphinx .rst Configuration:
This results in a output doc that ALSO exclude members from MixinC.
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: