Skip to content

Commit a765df6

Browse files
committed
re-indroduce pre-filtering of methods
1 parent d232103 commit a765df6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • {{cookiecutter.project_name}}/docs/_templates/autosummary

{{cookiecutter.project_name}}/docs/_templates/autosummary/class.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
77
.. autoclass:: {{ fullname }}
88

9+
{% set methods = methods | select("ne", "__init__") | list %}
10+
911
{% block attributes %}
1012
{% for item in attributes %}
1113
{% if loop.first %}
@@ -19,7 +21,7 @@ Attributes table
1921
{% endblock %}
2022

2123
{% block methods %}
22-
{% for item in methods if item != "__init__" %}
24+
{% for item in methods %}
2325
{% if loop.first %}
2426
Methods table
2527
~~~~~~~~~~~~~
@@ -42,7 +44,7 @@ Attributes
4244
{% endblock %}
4345

4446
{% block methods_documentation %}
45-
{% for item in methods if item != "__init__" %}
47+
{% for item in methods %}
4648
{% if loop.first %}
4749
Methods
4850
~~~~~~~

0 commit comments

Comments
 (0)