1
0
forked from VimPlug/jedi

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

@@ -450,14 +450,15 @@ class Function(ClassOrFunc):
"""
Used to store the parsed contents of a python function.
Children:
0. <Keyword: def>
1. <Name>
2. parameter list (including open-paren and close-paren <Operator>s)
3. or 5. <Operator: :>
4. or 6. Node() representing function body
3. -> (if annotation is also present)
4. annotation (if present)
Children::
0. <Keyword: def>
1. <Name>
2. parameter list (including open-paren and close-paren <Operator>s)
3. or 5. <Operator: :>
4. or 6. Node() representing function body
3. -> (if annotation is also present)
4. annotation (if present)
"""
type = 'funcdef'
@@ -520,12 +521,12 @@ class Lambda(Function):
"""
Lambdas are basically trimmed functions, so give it the same interface.
Children:
Children::
0. <Keyword: lambda>
*. <Param x> for each argument x
-2. <Operator: :>
-1. Node() representing body
0. <Keyword: lambda>
*. <Param x> for each argument x
-2. <Operator: :>
-1. Node() representing body
"""
type = 'lambdef'
__slots__ = ()