1
0
forked from VimPlug/jedi

Correct mistakes of lambda names

This commit is contained in:
Dave Halter
2018-03-08 09:52:35 +01:00
parent 23e7c5bd2a
commit 14ac6b11b9

View File

@@ -24,11 +24,13 @@ from jedi.evaluate.parser_cache import get_yield_exprs
class LambdaName(AbstractNameDefinition):
string_name = '<lambda>'
api_type = u'function'
def __init__(self, lambda_context):
self._lambda_context = lambda_context
self.parent_context = lambda_context.parent_context
@property
def start_pos(self):
return self._lambda_context.tree_node.start_pos