Lambda and Function docstrings render better.

This commit is contained in:
Dave Halter
2017-05-02 08:57:03 +02:00
parent fc7cc1c814
commit 5c836a72b6
2 changed files with 15 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ All nodes and leaves have these methods/properties:
Python Parser Tree Python Parser Tree
----------------- ------------------
.. automodule:: jedi.parser.python.tree .. automodule:: jedi.parser.python.tree
:members: :members:

View File

@@ -450,7 +450,8 @@ class Function(ClassOrFunc):
""" """
Used to store the parsed contents of a python function. Used to store the parsed contents of a python function.
Children: Children::
0. <Keyword: def> 0. <Keyword: def>
1. <Name> 1. <Name>
2. parameter list (including open-paren and close-paren <Operator>s) 2. parameter list (including open-paren and close-paren <Operator>s)
@@ -520,7 +521,7 @@ class Lambda(Function):
""" """
Lambdas are basically trimmed functions, so give it the same interface. Lambdas are basically trimmed functions, so give it the same interface.
Children: Children::
0. <Keyword: lambda> 0. <Keyword: lambda>
*. <Param x> for each argument x *. <Param x> for each argument x