mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
fix last remaining bugs of the big evaluate_representation refactoring
This commit is contained in:
@@ -101,7 +101,7 @@ def find_return_types(func):
|
|||||||
|
|
||||||
p = parsing.Parser(type_str, None, (1, 0), no_docstr=True)
|
p = parsing.Parser(type_str, None, (1, 0), no_docstr=True)
|
||||||
p.user_stmt.parent = func
|
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):
|
def search_return_in_docstr(code):
|
||||||
for p in DOCSTRING_RETURN_PATTERNS:
|
for p in DOCSTRING_RETURN_PATTERNS:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ sys.path.append(sys.path[1] + '/thirdparty')
|
|||||||
# syntax err
|
# syntax err
|
||||||
sys.path.append('a' +* '/thirdparty')
|
sys.path.append('a' +* '/thirdparty')
|
||||||
|
|
||||||
#? ['evaluate']
|
#? ['evaluate', 'evaluate_representation']
|
||||||
import evaluate
|
import evaluate
|
||||||
|
|
||||||
#? ['goto']
|
#? ['goto']
|
||||||
|
|||||||
Reference in New Issue
Block a user