forked from VimPlug/jedi
remove a circular dependency for docstrings.
This commit is contained in:
@@ -111,14 +111,6 @@ def find_return_types(evaluator, func):
|
|||||||
if match:
|
if match:
|
||||||
return match.group(1)
|
return match.group(1)
|
||||||
|
|
||||||
from jedi.evaluate import representation as er
|
|
||||||
|
|
||||||
if isinstance(func, er.InstanceElement):
|
|
||||||
func = func.var
|
|
||||||
|
|
||||||
if isinstance(func, er.Function):
|
|
||||||
func = func.base_func
|
|
||||||
|
|
||||||
type_str = search_return_in_docstr(func.docstr)
|
type_str = search_return_in_docstr(func.docstr)
|
||||||
if not type_str:
|
if not type_str:
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user