From 39c16237da28b1eb9ea0d920c8e1b15b4acfb08b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 5 Jan 2014 14:44:55 +0100 Subject: [PATCH] remove a circular dependency for docstrings. --- jedi/evaluate/docstrings.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/jedi/evaluate/docstrings.py b/jedi/evaluate/docstrings.py index 31b80097..54051e42 100644 --- a/jedi/evaluate/docstrings.py +++ b/jedi/evaluate/docstrings.py @@ -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 []