Skip to content

Class hierarchy diagram is not correct, if inherited from Python built-in class ABC #8854

Closed
@bertramrichter

Description

@bertramrichter

Describe the bug
In a Python project, the class hierarchy overview shows a wrong inheritance graph, if the Python built-in class abc.ABC (abstract base classes) is used as the root. Some seemingly random class is shown as the root of the inheritance tree and a circular inheritance dependency is shown, the inheritance from ABC is not shown. This only happens in Classes -> Class Hierarchy, the inheritance graphs for the individual classes in their documentation pages are always correct.

Expected behavior
Expected is that all classes inherit from ABC in the class hierarchy overview graph.

Screenshots
Correct without ABC:
image

Wrong with ABC:
image

Correct, with mixed (with and without ABC):
image

To Reproduce
Attached is a MWE of the problem: doxygen_problem_with_ABC.zip, which includes the source code, and the generated documentation, which leads to the examples shown above.

Version
I am currently using version 1.9.3 on Linux Mint 20.1 and 19.3, built from the instructions on the downloads page. But this this behavior is present in previous doxygen versions too.

Big thank you for the exciting framework.

Kindly Yours
Bertram Richter

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions