Sphinx oneline param type declaration feature

allows for type definition in ":param keyword"
This commit is contained in:
Pawel Palucki
2014-07-26 22:14:28 +02:00
parent 293fa5a14f
commit d359f5d043
4 changed files with 24 additions and 4 deletions

View File

@@ -119,10 +119,11 @@ http://sphinx-doc.org/domains.html#info-field-lists
::
def myfunction(node):
def myfunction(node, foo):
"""Do something with a ``node``.
:type node: ProgramNode
:param str foo: foo parameter description
"""
node.| # complete here