Skip to content

Commit

Permalink
doc: Add additional special methods in class template
Browse files Browse the repository at this point in the history
Mainly used in:
- Datasetes
- Iterators
- Variable and Parameter
  • Loading branch information
niboshi committed Jun 12, 2017
1 parent 714a07b commit 4be95b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/_templates/autosummary/class.rst
Expand Up @@ -15,7 +15,7 @@
..
Special methods
{% for item in ('__call__', '__enter__', '__exit__') %}
{% for item in ('__call__', '__enter__', '__exit__', '__getitem__', '__setitem__', '__len__', '__next__', '__iter__', '__copy__') %}
{% if item in all_methods %}
.. automethod:: {{ item }}
{% endif %}
Expand Down

0 comments on commit 4be95b7

Please sign in to comment.