Document some special method names

This commit is contained in:
Lonami Exo 2019-06-30 15:24:41 +02:00
parent aa2b3daccc
commit 71979e7b23

View File

@ -99,6 +99,23 @@ pygments_style = 'friendly'
todo_include_todos = False
def skip(app, what, name, obj, would_skip, options):
if name.endswith('__'):
# We want to show special methods names, except some which add clutter
return name in {
'__init__',
'__abstractmethods__',
'__module__',
'__doc__'
}
return would_skip
def setup(app):
app.connect("autodoc-skip-member", skip)
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for