1
0
forked from VimPlug/jedi

remove a circular dependency for docstrings.

This commit is contained in:
Dave Halter
2014-01-05 14:44:55 +01:00
parent fbfab9eefb
commit 39c16237da

View File

@@ -111,14 +111,6 @@ def find_return_types(evaluator, func):
if match:
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)
if not type_str:
return []