diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-11-13 11:19:26 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-11-13 11:19:26 +0900 |
commit | e5786b888cfce77772f2e11d9f2934b941edbc7d (patch) | |
tree | 742c27dc7da82806aea706ce90872eeb4f2d2f56 | |
parent | 760b379614880f70f0e5f7295df6f3c772b76745 (diff) | |
parent | 9f39b53c1640ab47874c5d180d07f338696e4993 (diff) | |
download | sphinx-git-e5786b888cfce77772f2e11d9f2934b941edbc7d.tar.gz |
Merge branch 'stable' into 1.5-release
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | EXAMPLES | 1 | ||||
-rw-r--r-- | doc/_themes/sphinx13/static/sphinx13.css | 4 | ||||
-rw-r--r-- | sphinx/ext/autodoc.py | 4 | ||||
-rw-r--r-- | sphinx/locale/it/LC_MESSAGES/sphinx.po | 2 | ||||
-rw-r--r-- | tox.ini | 1 |
6 files changed, 11 insertions, 2 deletions
@@ -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) ==================================== @@ -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" @@ -10,6 +10,7 @@ deps= whoosh html5lib mock + typing setenv = SPHINX_TEST_TEMPDIR = {envdir}/testbuild commands= |