1
0
forked from VimPlug/jedi

Removed the name attribute from lambda. It doesn't exist so don't fake it.

This commit is contained in:
Dave Halter
2017-04-11 18:10:35 +02:00
parent e675715357
commit 5cd26615e8
4 changed files with 28 additions and 7 deletions

View File

@@ -192,6 +192,9 @@ def follow_param(module_context, param):
for p in _evaluate_for_statement_string(module_context, param_str)]
)
func = param.get_parent_function()
if func.type == 'lambda':
return set()
types = eval_docstring(func.raw_doc)
if func.name.value == '__init__':
cls = search_ancestor(func, 'classdef')