forked from VimPlug/jedi
Only real modules should be added in get_modules_containing_name.
This commit is contained in:
@@ -121,7 +121,7 @@ def search_params(evaluator, param):
|
||||
for params in get_posibilities(evaluator, module, func_name):
|
||||
for p in params:
|
||||
if str(p) == param_name:
|
||||
result += evaluator.eval_statement(p.parent)
|
||||
result += evaluator.eval_statement(p.get_definition())
|
||||
return result
|
||||
|
||||
func = param.get_parent_until(pr.Function)
|
||||
|
||||
@@ -605,5 +605,5 @@ def get_modules_containing_name(mods, name):
|
||||
for p in sorted(paths):
|
||||
# make testing easier, sort it - same results on every interpreter
|
||||
c = check_python_file(p)
|
||||
if c is not None and c not in mods:
|
||||
if c is not None and c not in mods and not isinstance(c, compiled.CompiledObject):
|
||||
yield c
|
||||
|
||||
Reference in New Issue
Block a user