Skip to content

Commit

Permalink
Fix autodoc options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ynikitenko committed May 9, 2020
1 parent df607df commit af103c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def setup(app):

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
# otherwise autodoc_default_options raises an error.
# needs_sphinx = '2.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand All @@ -67,7 +68,9 @@ def setup(app):
# unfortunately, this gives a warning when __call__ is missing
# https://github.com/sphinx-doc/sphinx/issues/6771
autodoc_default_options = {
'members': True,
# https://github.com/sphinx-doc/sphinx/issues/5459
# for sphinx older than 2.0 None means True
'members': None,
'special-members': '__call__',
# 'undoc-members': True,
# 'exclude-members': '__weakref__'
Expand Down

0 comments on commit af103c2

Please sign in to comment.