force displaying known methods which are mis-recognized as attributes by Sphinx
Special methods
{% for item in ('__call__', '__enter__', '__exit__', '__getitem__', '__setitem__', '__len__', '__next__', '__iter__', '__copy__') %}
-{% if item in all_methods %}
+{% if item in all_methods or item in all_attributes %}
.. automethod:: {{ item }}
{% endif %}
{%- endfor %}
