forked from VimPlug/jedi
Change some more docstring stuff.
This commit is contained in:
@@ -21,6 +21,15 @@ All nodes and leaves have these methods/properties:
|
|||||||
:undoc-members:
|
:undoc-members:
|
||||||
|
|
||||||
|
|
||||||
|
Python Parser Tree
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
.. automodule:: jedi.parser.python.tree
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
|
||||||
Utility
|
Utility
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
@@ -461,13 +461,13 @@ 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)
|
||||||
3 or 5) <Operator: :>
|
3. or 5. <Operator: :>
|
||||||
4 or 6) Node() representing function body
|
4. or 6. Node() representing function body
|
||||||
3) -> (if annotation is also present)
|
3. -> (if annotation is also present)
|
||||||
4) annotation (if present)
|
4. annotation (if present)
|
||||||
"""
|
"""
|
||||||
type = 'funcdef'
|
type = 'funcdef'
|
||||||
|
|
||||||
@@ -511,10 +511,11 @@ 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>
|
|
||||||
*) <Param x> for each argument x
|
0. <Keyword: lambda>
|
||||||
-2) <Operator: :>
|
*. <Param x> for each argument x
|
||||||
-1) Node() representing body
|
-2. <Operator: :>
|
||||||
|
-1. Node() representing body
|
||||||
"""
|
"""
|
||||||
type = 'lambdef'
|
type = 'lambdef'
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|||||||
Reference in New Issue
Block a user