mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-28 05:44:14 +03:00
Document some special method names
This commit is contained in:
parent
aa2b3daccc
commit
71979e7b23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user