1
0
forked from VimPlug/jedi

The Lambda type should be lambdef, not lambda. Use the grammar types.

This commit is contained in:
Dave Halter
2017-04-11 18:28:25 +02:00
parent 685e630c03
commit 6190a65f23
5 changed files with 9 additions and 9 deletions

View File

@@ -634,7 +634,7 @@ class Lambda(Function):
-2) <Operator: :>
-1) Node() representing body
"""
type = 'lambda'
type = 'lambdef'
__slots__ = ()
def __init__(self, children):
@@ -1084,7 +1084,7 @@ class Param(PythonBaseNode):
return index - 1
def get_parent_function(self):
return search_ancestor(self, ('funcdef', 'lambda'))
return search_ancestor(self, ('funcdef', 'lambdef'))
def get_description(self):
# TODO Remove?