diff --git a/jedi/docstrings.py b/jedi/docstrings.py index 9ce6d725..3028c19d 100644 --- a/jedi/docstrings.py +++ b/jedi/docstrings.py @@ -101,7 +101,7 @@ def find_return_types(func): p = parsing.Parser(type_str, None, (1, 0), no_docstr=True) p.user_stmt.parent = func - return list(er.follow_statement(p.user_stmt)) + return list(evaluate.follow_statement(p.user_stmt)) def search_return_in_docstr(code): for p in DOCSTRING_RETURN_PATTERNS: diff --git a/test/completion/sys_path.py b/test/completion/sys_path.py index 0b784b0b..3d894487 100644 --- a/test/completion/sys_path.py +++ b/test/completion/sys_path.py @@ -12,7 +12,7 @@ sys.path.append(sys.path[1] + '/thirdparty') # syntax err sys.path.append('a' +* '/thirdparty') -#? ['evaluate'] +#? ['evaluate', 'evaluate_representation'] import evaluate #? ['goto']