Skip to content

Commit ee6f20d

Browse files
authored
Do not show the 'Methods Summary' heading if a class only have the __init__ method (#2371)
1 parent 3022282 commit ee6f20d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/_templates/autosummary/class.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.. autoclass:: {{ objname }}
66

7+
{% if methods != ["__init__"] %}
78
.. rubric:: Methods Summary
89

910
.. autosummary::
@@ -12,6 +13,7 @@
1213
{{ objname }}.{{ item }}
1314
{% endif %}
1415
{% endfor %}
16+
{% endif %}
1517

1618
.. include:: backreferences/{{ fullname }}.examples
1719

0 commit comments

Comments
 (0)