forked from VimPlug/jedi
Correct mistakes of lambda names
This commit is contained in:
@@ -24,11 +24,13 @@ from jedi.evaluate.parser_cache import get_yield_exprs
|
|||||||
|
|
||||||
class LambdaName(AbstractNameDefinition):
|
class LambdaName(AbstractNameDefinition):
|
||||||
string_name = '<lambda>'
|
string_name = '<lambda>'
|
||||||
|
api_type = u'function'
|
||||||
|
|
||||||
def __init__(self, lambda_context):
|
def __init__(self, lambda_context):
|
||||||
self._lambda_context = lambda_context
|
self._lambda_context = lambda_context
|
||||||
self.parent_context = lambda_context.parent_context
|
self.parent_context = lambda_context.parent_context
|
||||||
|
|
||||||
|
@property
|
||||||
def start_pos(self):
|
def start_pos(self):
|
||||||
return self._lambda_context.tree_node.start_pos
|
return self._lambda_context.tree_node.start_pos
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user