summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-09 14:37:03 -0400
committerGitHub <noreply@github.com>2020-04-09 14:37:03 -0400
commit3865eb36b11ac246ff2b4c66f230996ccff72349 (patch)
tree976a35e72403b6fae7d5c3d1db4bfa8b7b87f377 /docs/conf.py
parent22d61a87386c73f3ea8686402ce8327346b58376 (diff)
parentdfd1e34d9391ae1328ec8b05296156a4a7bafaf7 (diff)
downloadcmd2-git-3865eb36b11ac246ff2b4c66f230996ccff72349.tar.gz
Merge pull request #915 from python-cmd2/decorator_order
Added documentation about decorator order and updated an example
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index cd320f52..9bb2e855 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -169,3 +169,16 @@ intersphinx_mapping = {'http://docs.python.org/': None}
autodoc_default_options = {
'member-order': 'bysource'
}
+
+# Ignore nitpicky warnings from autodoc which are occurring for very new versions of Sphinx and autodoc
+# They seem to be happening because autodoc is now trying to add hyperlinks to docs for typehint classes
+nitpick_ignore = [
+ ('py:class', 'Callable[[None], None]'),
+ ('py:class', 'cmd2.cmd2.Cmd'),
+ ('py:class', 'cmd2.parsing.Statement'),
+ ('py:class', 'IO'),
+ ('py:class', 'None'),
+ ('py:class', 'Optional[Callable[[...], argparse.Namespace]]'),
+ ('py:class', 'TextIO'),
+ ('py:class', 'Union[None, Iterable, Callable]'),
+]