def process_class_docstrings(app, what, name, obj, options, lines):
if what == "<STR_LIT:class>":<EOL><INDENT>joined = '<STR_LIT:\n>'.join(lines)<EOL>templates = [<EOL>"""<STR_LIT>""".. rubric:: Methods<EOL>utosummary::<EOL>toctree:<EOL>one<EOL>]<EOL>for template in templates:<EOL><INDENT>if template in joined:<EOL><INDENT>joined = joined.replace(template, '<STR_LIT>')<EOL><DEDENT><DEDENT>lines[:] = joined.split('<STR_LIT:\n>')<EOL><DEDENT>
For those classes for which we use ::

:template: autosummary/class_without_autosummary.rst

the documented attributes/methods have to be listed in the class
docstring. However, if one of those lists is empty, we use 'None',
which then generates warnings in sphinx / ugly html output.
This "autodoc-process-docstring" event connector removes that part
from the processed docstring.