Skip to content

Commit

Permalink
Fixed incorrect formatting with private inheritance diagrams
Browse files Browse the repository at this point in the history
Fixes #195
  • Loading branch information
AWhetter committed May 17, 2020
1 parent cd9b9ca commit ea150af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -26,6 +26,9 @@ Bug Fixes
^^^^^^^^^
* `#198 <https://github.com/readthedocs/sphinx-autoapi/issues/198>`:
Documentation describes the required layout for template override directories.
* `#195 <https://github.com/readthedocs/sphinx-autoapi/issues/195>`: (Python)
Fixed incorrect formatting when ``show-inheritance-diagram``
and ``private-members`` are turned on.

Trivial/Internal Changes
^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
4 changes: 3 additions & 1 deletion autoapi/templates/python/class.rst
Expand Up @@ -11,7 +11,9 @@
{% if "show-inheritance-diagram" in autoapi_options and obj.bases != ["object"] %}
.. autoapi-inheritance-diagram:: {{ obj.obj["full_name"] }}
:parts: 1
{% if "private-members" in autoapi_options %}:private-bases:{% endif %}
{% if "private-members" in autoapi_options %}
:private-bases:
{% endif %}

{% endif %}
{% endif %}
Expand Down

0 comments on commit ea150af

Please sign in to comment.