summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-11-13 11:19:26 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-11-13 11:19:26 +0900
commite5786b888cfce77772f2e11d9f2934b941edbc7d (patch)
tree742c27dc7da82806aea706ce90872eeb4f2d2f56
parent760b379614880f70f0e5f7295df6f3c772b76745 (diff)
parent9f39b53c1640ab47874c5d180d07f338696e4993 (diff)
downloadsphinx-git-e5786b888cfce77772f2e11d9f2934b941edbc7d.tar.gz
Merge branch 'stable' into 1.5-release
-rw-r--r--CHANGES1
-rw-r--r--EXAMPLES1
-rw-r--r--doc/_themes/sphinx13/static/sphinx13.css4
-rw-r--r--sphinx/ext/autodoc.py4
-rw-r--r--sphinx/locale/it/LC_MESSAGES/sphinx.po2
-rw-r--r--tox.ini1
6 files changed, 11 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 8813e6f29..0a0606a5a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -266,6 +266,7 @@ Bugs fixed
results in warning / error
* #3068: Allow the '=' character in the -D option of sphinx-build.py
* #3074: ``add_source_parser()`` crashes in debug mode
+* #3135: ``sphinx.ext.autodoc`` crashes with plain Callable
Release 1.4.8 (released Oct 1, 2016)
====================================
diff --git a/EXAMPLES b/EXAMPLES
index e5d27f747..e84e0db26 100644
--- a/EXAMPLES
+++ b/EXAMPLES
@@ -94,6 +94,7 @@ Documentation using a customized version of the classic theme
* NumPy: http://docs.scipy.org/doc/numpy/reference/
* OpenCV: http://docs.opencv.org/
* Peach^3: http://peach3.nl/doc/latest/userdoc/
+* Pygame: http://www.pygame.org/docs/
* Sage: http://www.sagemath.org/doc/
* SciPy: http://docs.scipy.org/doc/scipy/reference/
* simuPOP: http://simupop.sourceforge.net/manual_release/build/userGuide.html
diff --git a/doc/_themes/sphinx13/static/sphinx13.css b/doc/_themes/sphinx13/static/sphinx13.css
index a2549e181..26df65b45 100644
--- a/doc/_themes/sphinx13/static/sphinx13.css
+++ b/doc/_themes/sphinx13/static/sphinx13.css
@@ -384,6 +384,10 @@ div.warning ul, div.warning ol {
padding: 0;
}
+div.admonition div.highlight {
+ background: none;
+}
+
.viewcode-back {
font-family: 'Open Sans', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva',
'Verdana', sans-serif;
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 9b8bc7e5f..20f4cee0b 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -317,7 +317,9 @@ def format_annotation(annotation):
hasattr(annotation, '__result__'):
# Skipped in the case of plain typing.Callable
args = annotation.__args__
- if args is Ellipsis:
+ if args is None:
+ return qualified_name
+ elif args is Ellipsis:
args_str = '...'
else:
formatted_args = (format_annotation(a) for a in args)
diff --git a/sphinx/locale/it/LC_MESSAGES/sphinx.po b/sphinx/locale/it/LC_MESSAGES/sphinx.po
index b37c4410d..51b0f6e56 100644
--- a/sphinx/locale/it/LC_MESSAGES/sphinx.po
+++ b/sphinx/locale/it/LC_MESSAGES/sphinx.po
@@ -819,7 +819,7 @@ msgstr "Ricerca completata, trovata/e %s pagina/e corrispondenti."
#: sphinx/themes/basic/static/searchtools.js_t:338
msgid ", in "
-msgstr ", in"
+msgstr ", in "
#: sphinx/themes/classic/static/sidebar.js_t:83
msgid "Expand sidebar"
diff --git a/tox.ini b/tox.ini
index 09c3e751d..ca3cac99b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,6 +10,7 @@ deps=
whoosh
html5lib
mock
+ typing
setenv =
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
commands=