Skip to content

Commit

Permalink
Fixes display of inherited members of classes (#404)
Browse files Browse the repository at this point in the history
# References and relevant issues
Follow-up to #316

# Description
I inadvertently added a Jinja syntax error in #316. Also adds a comment
to explain why this is necessary.
  • Loading branch information
melissawm authored Apr 21, 2024
1 parent 5e62bc1 commit 584098a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
.. autoclass:: {{ objname }}
:members:
:show-inheritance:
{% if objname != "progress" %}
:inherited-members:
{% endif %}
{#- These classes inherit docstrings from the raw qt source, which generates rst syntax errors when building the docs #}
{% if objname not in ["progress", "cancelable_progress"] -%}
:inherited-members:
{%- endif %}

{% block methods %}

Expand Down

0 comments on commit 584098a

Please sign in to comment.