Correct mistakes of lambda names
This commit is contained in:
1 parent
23e7c5bd2a
commit
14ac6b11b9
1 file changed
+2
@@ -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