Demodocs: move version info into python module

This commit is contained in:
Aaron Carlisle 2017-03-15 00:32:57 -04:00
parent df71e5b460
commit 84f914eac7
2 changed files with 7 additions and 8 deletions

View File

@ -331,13 +331,6 @@ Data
Some data link :data:`Data_item_1`.
.. versionadded:: 1.0
This was added in 1.0
.. versionchanged:: 2.0
This was changed in 2.0
.. deprecated:: 3.0
This is deprecated since 3.0
Download links
==============

View File

@ -4,7 +4,7 @@
class Foo:
r"""Docstring for class Foo.
"""Docstring for class Foo.
This text tests for the formatting of docstrings generated from output
``sphinx.ext.autodoc``. Which contain reST, but sphinx nests it in the
@ -103,5 +103,11 @@ class Foo:
:raises ValueError: When ``a`` is not an integer.
.. versionadded:: 1.0
This was added in 1.0
.. versionchanged:: 2.0
This was changed in 2.0
.. deprecated:: 3.0
This is deprecated since 3.0
"""
return sum(kwargs.values()) / len(kwargs), a + b