doc/source/_templates/autosummary/class.rst
.. raw:: html
<div class="prename">{{ module }}.</div> <div class="empty"></div>{{ name }} {{ underline }}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }} :no-members: :no-inherited-members: :no-special-members:
{% block methods %} .. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. .. autosummary:: :toctree: {% for item in all_methods %} {%- if not item.startswith('_') or item in ['call', 'mul', 'getitem', 'len', 'pow', 'matmul', 'truediv', 'add', 'rmul', 'rmatmul'] %} {{ name }}.{{ item }} {%- endif -%} {%- endfor %} {% for item in inherited_members %} {%- if item in ['call', 'mul', 'getitem', 'len', 'pow', 'matmul', 'truediv', 'add', 'rmul', 'rmatmul'] %} {{ name }}.{{ item }} {%- endif -%} {%- endfor %} {% endblock %}
{% block attributes %} {% if attributes %} .. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. .. autosummary:: :toctree: {% for item in all_attributes %} {%- if not item.startswith('_') %} {{ name }}.{{ item }} {%- endif -%} {%- endfor %} {% endif %} {% endblock %}